Bug 1371515. P3 - remove IsShutdown() which now has not callers. r?kaku draft
authorJW Wang <jwwang@mozilla.com>
Fri, 09 Jun 2017 11:43:51 +0800
changeset 591502 98931436137fbcf9d4e74f843342094f6c5c0a51
parent 591501 fadda4c8064495d1831413fe8002ed91401a8ac8
child 591503 0a070d0942c8f4d9e9139c17518f68c15f93403f
push id63063
push userjwwang@mozilla.com
push dateFri, 09 Jun 2017 03:55:15 +0000
reviewerskaku
bugs1371515
milestone55.0a1
Bug 1371515. P3 - remove IsShutdown() which now has not callers. r?kaku MozReview-Commit-ID: Te3F7WJ8iF
dom/media/MediaDecoderStateMachine.cpp
dom/media/MediaDecoderStateMachine.h
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -3759,23 +3759,16 @@ MediaDecoderStateMachine::SetPlaybackRat
 }
 
 void MediaDecoderStateMachine::PreservesPitchChanged()
 {
   MOZ_ASSERT(OnTaskQueue());
   mMediaSink->SetPreservesPitch(mPreservesPitch);
 }
 
-bool
-MediaDecoderStateMachine::IsShutdown() const
-{
-  MOZ_ASSERT(OnTaskQueue());
-  return mIsShutdown;
-}
-
 TimeUnit
 MediaDecoderStateMachine::AudioEndTime() const
 {
   MOZ_ASSERT(OnTaskQueue());
   if (mMediaSink->IsStarted()) {
     return mMediaSink->GetEndTime(TrackInfo::kAudioTrack);
   }
   return TimeUnit::Zero();
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -300,19 +300,16 @@ private:
   // Invokes ScheduleStateMachine to run in |aTime|,
   // unless it's already scheduled to run earlier, in which case the
   // request is discarded.
   void ScheduleStateMachineIn(const media::TimeUnit& aTime);
 
   bool HaveEnoughDecodedAudio();
   bool HaveEnoughDecodedVideo();
 
-  // True if shutdown process has begun.
-  bool IsShutdown() const;
-
   // Returns true if we're currently playing. The decoder monitor must
   // be held.
   bool IsPlaying() const;
 
   // Sets mMediaSeekable to false.
   void SetMediaNotSeekable();
 
   // Resets all states related to decoding and aborts all pending requests