Bug 1314524. Part 1 - remove MDSM::SetDormant() which has no callers. draft
authorJW Wang <jwwang@mozilla.com>
Fri, 28 Oct 2016 16:00:23 +0800
changeset 433063 78be39c5647723f570e0dffd318cd80bbc6a2750
parent 433058 531e8540f356d95e96795b762f81b04f660473d6
child 433064 9ae7bbdd5b8c88ebd9fd1e410552a0fe4a0ccc9d
push id34474
push userjwwang@mozilla.com
push dateThu, 03 Nov 2016 03:26:05 +0000
bugs1314524
milestone52.0a1
Bug 1314524. Part 1 - remove MDSM::SetDormant() which has no callers. MozReview-Commit-ID: KQ7pZlCGqW8
dom/media/MediaDecoderStateMachine.cpp
dom/media/MediaDecoderStateMachine.h
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2507,23 +2507,16 @@ void MediaDecoderStateMachine::Recompute
       duration < mObservedDuration.Ref()) {
     duration = mObservedDuration;
   }
 
   MOZ_ASSERT(duration.ToMicroseconds() >= 0);
   mDuration = Some(duration);
 }
 
-void
-MediaDecoderStateMachine::SetDormant(bool aDormant)
-{
-  MOZ_ASSERT(OnTaskQueue());
-  mStateObj->HandleDormant(aDormant);
-}
-
 RefPtr<ShutdownPromise>
 MediaDecoderStateMachine::Shutdown()
 {
   MOZ_ASSERT(OnTaskQueue());
   return mStateObj->HandleShutdown();
 }
 
 void MediaDecoderStateMachine::PlayStateChanged()
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -276,18 +276,16 @@ private:
   // on the appropriate threads.
   bool OnTaskQueue() const;
 
   // Initialization that needs to happen on the task queue. This is the first
   // task that gets run on the task queue, and is dispatched from the MDSM
   // constructor immediately after the task queue is created.
   void InitializationTask(MediaDecoder* aDecoder);
 
-  void SetDormant(bool aDormant);
-
   void SetAudioCaptured(bool aCaptured);
 
   RefPtr<MediaDecoder::SeekPromise> Seek(SeekTarget aTarget);
 
   RefPtr<ShutdownPromise> Shutdown();
 
   RefPtr<ShutdownPromise> FinishShutdown();