bug remove unused MediaStream::ConsumerCount() r? draft
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 27 Oct 2016 18:32:19 +1300
changeset 648595 3543061c2e4f672ab1f2066bab3f19183443dc5a
parent 648384 e365137fa61bfd729617ba1ebf9f1ed79facd1f2
child 648596 5da7e2c2a062ba2110dcab86f24b7a054722d544
push id74809
push userktomlinson@mozilla.com
push dateFri, 18 Aug 2017 01:10:01 +0000
milestone57.0a1
bug remove unused MediaStream::ConsumerCount() r? MozReview-Commit-ID: 2y6b7sP1vJZ
dom/media/MediaStreamGraph.h
--- a/dom/media/MediaStreamGraph.h
+++ b/dom/media/MediaStreamGraph.h
@@ -442,20 +442,16 @@ public:
   void AddConsumer(MediaInputPort* aPort)
   {
     mConsumers.AppendElement(aPort);
   }
   void RemoveConsumer(MediaInputPort* aPort)
   {
     mConsumers.RemoveElement(aPort);
   }
-  uint32_t ConsumerCount()
-  {
-    return mConsumers.Length();
-  }
   StreamTracks& GetStreamTracks() { return mTracks; }
   GraphTime GetStreamTracksStartTime() { return mTracksStartTime; }
 
   double StreamTimeToSeconds(StreamTime aTime)
   {
     NS_ASSERTION(0 <= aTime && aTime <= STREAM_TIME_MAX, "Bad time");
     return static_cast<double>(aTime)/mTracks.GraphRate();
   }