Bug 1371515. P3 - remove IsShutdown() which now has no callers. r?kaku draft
authorJW Wang <jwwang@mozilla.com>
Fri, 09 Jun 2017 11:43:51 +0800
changeset 592331 71da73f5a6a36605c08414bf7c750309ac9231b8
parent 591501 fadda4c8064495d1831413fe8002ed91401a8ac8
child 592332 5608e0636df2417d4a65cd6085c4dc82b6772d65
push id63342
push userjwwang@mozilla.com
push dateMon, 12 Jun 2017 03:09:28 +0000
reviewerskaku
bugs1371515
milestone55.0a1
Bug 1371515. P3 - remove IsShutdown() which now has no 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