Clean up down track type as it is not used (#265)

This commit is contained in:
Raja Subramanian
2021-12-17 13:00:44 +05:30
committed by GitHub
parent e504b6678c
commit 62feed3983
2 changed files with 0 additions and 17 deletions
-15
View File
@@ -30,14 +30,6 @@ type TrackSender interface {
PeerID() string
}
// DownTrackType determines the type of track
type DownTrackType int
const (
SimpleDownTrack DownTrackType = iota + 1
SimulcastDownTrack
)
const (
RTPPaddingMaxPayloadSize = 255
RTPPaddingEstimatedHeaderSize = 20
@@ -87,7 +79,6 @@ type DownTrack struct {
maxTrack int
payloadType uint8
sequencer *sequencer
trackType DownTrackType
bufferFactory *buffer.Factory
forwarder *Forwarder
@@ -160,12 +151,6 @@ func NewDownTrack(c webrtc.RTPCodecCapability, r TrackReceiver, bf *buffer.Facto
d.rtxStats.Store(new(PacketStats))
d.paddingStats.Store(new(PacketStats))
if r.IsSimulcast() {
d.trackType = SimulcastDownTrack
} else {
d.trackType = SimpleDownTrack
}
return d, nil
}