Bug 1398659. P12 - remove unused MediaCacheStream::mHasHadUpdate.
MozReview-Commit-ID: 98Nhi924Jip
--- a/dom/media/MediaCache.cpp
+++ b/dom/media/MediaCache.cpp
@@ -445,17 +445,16 @@ MediaCacheFlusher::Observe(nsISupports *
}
return NS_OK;
}
MediaCacheStream::MediaCacheStream(ChannelMediaResource* aClient,
bool aIsPrivateBrowsing)
: mMediaCache(nullptr)
, mClient(aClient)
- , mHasHadUpdate(false)
, mClosed(false)
, mDidNotifyDataEnded(false)
, mResourceID(0)
, mIsTransportSeekable(false)
, mCacheSuspended(false)
, mChannelEnded(false)
, mChannelOffset(0)
, mStreamLength(-1)
@@ -1421,17 +1420,16 @@ MediaCache::Update()
stream->mCacheSuspended = false;
break;
case SUSPEND:
stream->mCacheSuspended = true;
break;
default:
break;
}
- stream->mHasHadUpdate = true;
}
for (uint32_t i = 0; i < mStreams.Length(); ++i) {
MediaCacheStream* stream = mStreams[i];
nsresult rv;
switch (actions[i]) {
case SEEK:
case SEEK_AND_RESUME:
--- a/dom/media/MediaCache.h
+++ b/dom/media/MediaCache.h
@@ -429,19 +429,16 @@ private:
bool UpdatePrincipal(nsIPrincipal* aPrincipal);
// Instance of MediaCache to use with this MediaCacheStream.
RefPtr<MediaCache> mMediaCache;
// These fields are main-thread-only.
ChannelMediaResource* mClient;
nsCOMPtr<nsIPrincipal> mPrincipal;
- // Set to true when MediaCache::Update() has finished while this stream
- // was present.
- bool mHasHadUpdate;
// Set to true when the stream has been closed either explicitly or
// due to an internal cache error
bool mClosed;
// True if CacheClientNotifyDataEnded has been called for this stream.
bool mDidNotifyDataEnded;
// The following fields must be written holding the cache's monitor and
// only on the main thread, thus can be read either on the main thread