commit aadc796754a404c64562bb2061bc0085e645e6c6
parent da1a099e334bded321dbb6e85d7c9248c026ffdd
Author: Oliver Lowe <o@olowe.co>
Date: Tue, 7 May 2024 13:15:15 +1000
internal/scte35: remove unused type UTCSpliceTime
We just use a plain time.Time value now, without this wrapper.
Diffstat:
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/internal/scte35/scte35.go b/internal/scte35/scte35.go
@@ -112,24 +112,6 @@ func (bb *Bytes) UnmarshalText(b []byte) error {
return nil
}
-// NewUTCSpliceTime creates a UTCSpliceTime representing the number of seconds
-// from GPS Epoch (01 Jan 1980, 00:00:00 UTC)
-func NewUTCSpliceTime(sec uint32) UTCSpliceTime {
- return UTCSpliceTime{
- time.Unix(int64(sec+unixEpochToGPSEpoch), 0),
- }
-}
-
-// UTCSpliceTime is used to carry utc_splice_time values.
-type UTCSpliceTime struct {
- time.Time
-}
-
-// GPSSeconds returns the seconds since GPS Epoch
-func (t UTCSpliceTime) GPSSeconds() uint32 {
- return uint32(t.Time.Unix()) - unixEpochToGPSEpoch
-}
-
// readerError returns the readers error state, if any.
func readerError(r iobit.Reader) error {
if r.LeftBits() > 0 {