streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit b0b2e0a93b500d0c8699eded2f8cea1035a83a46
parent c0a92103cbbf2cf5a46cf5bbf7a1375a100478f3
Author: Oliver Lowe <o@olowe.co>
Date:   Thu,  2 May 2024 17:18:42 +1000

internal/scte35: remove unused string methods

Diffstat:
Minternal/scte35/delivery_restrictions.go | 17-----------------
Minternal/scte35/splice_info_section.go | 14--------------
2 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/internal/scte35/delivery_restrictions.go b/internal/scte35/delivery_restrictions.go @@ -31,20 +31,3 @@ type DeliveryRestrictions struct { NoRegionalBlackoutFlag bool DeviceRestrictions uint32 } - -// deviceRestrictionsName returns the human-readable name for the -// device_restrictions. -func (dr *DeliveryRestrictions) deviceRestrictionsName() string { - switch dr.DeviceRestrictions { - case DeviceRestrictionsGroup0: - return "Restrict Group 0" - case DeviceRestrictionsGroup1: - return "Restrict Group 1" - case DeviceRestrictionsGroup2: - return "Restrict Group 2" - case DeviceRestrictionsNone: - return "None" - default: - return "Unknown" - } -} diff --git a/internal/scte35/splice_info_section.go b/internal/scte35/splice_info_section.go @@ -235,20 +235,6 @@ func (sis *SpliceInfoSection) Hex() string { return hex.EncodeToString(b) } -// SAPTypeName returns the Stream Access Point type name. -func (sis *SpliceInfoSection) SAPTypeName() string { - switch sis.SAPType { - case SAPType1: - return "Type 1" - case SAPType2: - return "Type 2" - case SAPType3: - return "Type 3" - default: - return "Not Specified" - } -} - // length returns the expected length of the encoded splice_info_section, in // bytes. func (sis *SpliceInfoSection) length() int {