From 3bb4ecdddcbe3014bcac9c1f3225bd245504a08e Mon Sep 17 00:00:00 2001 From: JW Wang Date: Mon, 31 Jul 2017 10:15:47 +0800 Subject: [PATCH] Bug 1385748. P1 - remove MDSM::IsLogicallyPlaying() which has no callers at all. r=kaku MozReview-Commit-ID: IfpzTMVtgf6 --HG-- extra : rebase_source : 3a70298f2175cba32dbc47ce4c7d087bff944d44 --- dom/media/MediaDecoderStateMachine.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dom/media/MediaDecoderStateMachine.h b/dom/media/MediaDecoderStateMachine.h index 5ad28ba3d6e1..b6d16c6b4050 100644 --- a/dom/media/MediaDecoderStateMachine.h +++ b/dom/media/MediaDecoderStateMachine.h @@ -530,18 +530,6 @@ private: // increasing. Watchable mObservedDuration; - // Returns true if we're logically playing, that is, if the Play() has - // been called and Pause() has not or we have not yet reached the end - // of media. This is irrespective of the seeking state; if the owner - // calls Play() and then Seek(), we still count as logically playing. - // The decoder monitor must be held. - bool IsLogicallyPlaying() - { - MOZ_ASSERT(OnTaskQueue()); - return mPlayState == MediaDecoder::PLAY_STATE_PLAYING - || mNextPlayState == MediaDecoder::PLAY_STATE_PLAYING; - } - // Media Fragment end time. media::TimeUnit mFragmentEndTime = media::TimeUnit::Invalid();