Bug 1404997 - P11. Remove unused TrackAddedCallback class. r?pehrsons draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 05 Dec 2017 11:38:11 +0100
changeset 710541 49bb051fc190801c293651c6dfaae3a1221247e9
parent 710540 6e92f5ab14d88390e07a3ac5bd30e9bcc771d1c9
child 710542 dd966afa4114416ca876b18bb4deffecaf01dd4c
push id92845
push userbmo:jyavenard@mozilla.com
push dateSun, 10 Dec 2017 22:43:10 +0000
reviewerspehrsons
bugs1404997
milestone59.0a1
Bug 1404997 - P11. Remove unused TrackAddedCallback class. r?pehrsons MozReview-Commit-ID: HGe6RjwwC5z
media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
--- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
+++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
@@ -2031,43 +2031,16 @@ MediaPipelineTransmit::PipelineListener:
 
 void
 MediaPipelineTransmit::PipelineListener::SetCurrentFrames(
   const VideoSegment& aSegment)
 {
   NewData(aSegment);
 }
 
-class TrackAddedCallback
-{
-public:
-  virtual void TrackAdded(TrackTicks aCurrentTicks) = 0;
-
-  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(TrackAddedCallback);
-
-protected:
-  virtual ~TrackAddedCallback() {}
-};
-
-class GenericReceiveListener;
-
-class GenericReceiveCallback : public TrackAddedCallback
-{
-public:
-  explicit GenericReceiveCallback(GenericReceiveListener* aListener)
-    : mListener(aListener)
-  {
-  }
-
-  void TrackAdded(TrackTicks aTime);
-
-private:
-  const RefPtr<GenericReceiveListener> mListener;
-};
-
 class GenericReceiveListener : public MediaStreamListener
 {
 public:
   explicit GenericReceiveListener(dom::MediaStreamTrack* aTrack)
     : mTrack(aTrack)
     , mPlayedTicks(0)
     , mPrincipalHandle(PRINCIPAL_HANDLE_NONE)
     , mListening(false)