Bug 1503132 remove unused MediaStream::ConsumerCount() r=padenot
authorKarl Tomlinson <karlt+@karlt.net>
Tue, 30 Oct 2018 23:49:55 +0000
changeset 443660 981f31de39240803c9734617812082cc628fe65e
parent 443659 bcc2ee3d67b09495a4f7fed09711edcf6ae3e201
child 443661 3fb0c8f6d6e2ec5ed34b6df3ba082c2a37ee0642
push id109420
push useraciure@mozilla.com
push dateWed, 31 Oct 2018 05:11:56 +0000
treeherdermozilla-inbound@b357da105c49 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1503132
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1503132 remove unused MediaStream::ConsumerCount() r=padenot Differential Revision: https://phabricator.services.mozilla.com/D10159
dom/media/MediaStreamGraph.h
--- a/dom/media/MediaStreamGraph.h
+++ b/dom/media/MediaStreamGraph.h
@@ -466,20 +466,16 @@ public:
   void AddConsumer(MediaInputPort* aPort)
   {
     mConsumers.AppendElement(aPort);
   }
   void RemoveConsumer(MediaInputPort* aPort)
   {
     mConsumers.RemoveElement(aPort);
   }
-  uint32_t ConsumerCount() const
-  {
-    return mConsumers.Length();
-  }
   StreamTracks& GetStreamTracks() { return mTracks; }
   GraphTime GetStreamTracksStartTime() const { return mTracksStartTime; }
 
   double StreamTimeToSeconds(StreamTime aTime) const
   {
     NS_ASSERTION(0 <= aTime && aTime <= STREAM_TIME_MAX, "Bad time");
     return static_cast<double>(aTime)/mTracks.GraphRate();
   }