Bug 1398659. P9 - remove unused member. draft
authorJW Wang <jwwang@mozilla.com>
Thu, 07 Sep 2017 16:08:10 +0800
changeset 662185 45e3b84d1a945713f5eecb02c3a8b301c55a5eb4
parent 662184 df0a1b0ecde95befcf0fcdbf30f99fd4220e65d7
child 662186 03902552ea91927aba65f1c9ac9f2a18097f45ba
push id78979
push userjwwang@mozilla.com
push dateMon, 11 Sep 2017 05:57:05 +0000
bugs1398659
milestone57.0a1
Bug 1398659. P9 - remove unused member. MozReview-Commit-ID: 5SSnbYQXxKD
dom/media/MediaResource.cpp
dom/media/MediaResource.h
--- a/dom/media/MediaResource.cpp
+++ b/dom/media/MediaResource.cpp
@@ -79,33 +79,31 @@ ChannelMediaResource::ChannelMediaResour
                                            nsIChannel* aChannel,
                                            nsIURI* aURI,
                                            bool aIsPrivateBrowsing)
   : BaseMediaResource(aCallback, aChannel, aURI)
   , mOffset(0)
   , mReopenOnError(false)
   , mIgnoreClose(false)
   , mCacheStream(this, aIsPrivateBrowsing)
-  , mIgnoreResume(false)
   , mSuspendAgent(mChannel)
 {
 }
 
 ChannelMediaResource::ChannelMediaResource(
   MediaResourceCallback* aCallback,
   nsIChannel* aChannel,
   nsIURI* aURI,
   const MediaChannelStatistics& aStatistics)
   : BaseMediaResource(aCallback, aChannel, aURI)
   , mOffset(0)
   , mReopenOnError(false)
   , mIgnoreClose(false)
   , mCacheStream(this, /* aIsPrivateBrowsing = */ false)
   , mChannelStatistics(aStatistics)
-  , mIgnoreResume(false)
   , mSuspendAgent(mChannel)
 {
 }
 
 ChannelMediaResource::~ChannelMediaResource()
 {
   MOZ_ASSERT(!mChannel);
   MOZ_ASSERT(!mListener);
--- a/dom/media/MediaResource.h
+++ b/dom/media/MediaResource.h
@@ -576,22 +576,16 @@ protected:
   // When this flag is set, we should not report the next close of the
   // channel.
   bool               mIgnoreClose;
 
   // Any thread access
   MediaCacheStream mCacheStream;
 
   MediaChannelStatistics mChannelStatistics;
-
-  // True if we couldn't suspend the stream and we therefore don't want
-  // to resume later. This is usually due to the channel not being in the
-  // isPending state at the time of the suspend request.
-  bool mIgnoreResume;
-
   ChannelSuspendAgent mSuspendAgent;
 };
 
 /**
  * RAII class that handles pinning and unpinning for MediaResource and derived.
  * This should be used when making calculations that involve potentially-cached
  * MediaResource data, so that the state of the world can't change out from under
  * us.