Bug 1346498 part 2 - remove unused MediaDecoder::HasSuspendTaint(); r?jwwang
MozReview-Commit-ID: 9AUDVpfSyfL
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -1323,23 +1323,16 @@ MediaDecoder::SetForcedHidden(bool aForc
void
MediaDecoder::SetSuspendTaint(bool aTainted)
{
MOZ_ASSERT(NS_IsMainThread());
mHasSuspendTaint = aTainted;
}
-bool
-MediaDecoder::HasSuspendTaint() const
-{
- MOZ_ASSERT(NS_IsMainThread());
- return mHasSuspendTaint;
-}
-
void
MediaDecoder::UpdateEstimatedMediaDuration(int64_t aDuration)
{
MOZ_ASSERT(NS_IsMainThread());
if (mPlayState <= PLAY_STATE_LOADING) {
return;
}
--- a/dom/media/MediaDecoder.h
+++ b/dom/media/MediaDecoder.h
@@ -375,19 +375,16 @@ private:
// Force override the visible state to hidden.
// Called from HTMLMediaElement when testing of video decode suspend from mochitests.
void SetForcedHidden(bool aForcedHidden);
// Mark the decoder as tainted, meaning suspend-video-decoder is disabled.
void SetSuspendTaint(bool aTaint);
- // Returns true if the decoder can't participate in suspend-video-decoder.
- bool HasSuspendTaint() const;
-
/******
* The following methods must only be called on the main
* thread.
******/
// Change to a new play state. This updates the mState variable and
// notifies any thread blocking on this object's monitor of the
// change. Call on the main thread only.