Bug 1221009. Part 2 - remove unused code. r=roc. draft
authorJW Wang <jwwang@mozilla.com>
Thu, 12 Nov 2015 18:17:43 +0800
changeset 308398 9c2f3624f05f9de3a3c8bc1060c95050f3a3b653
parent 308397 6eea16ecf00b3a6b47d6aeeca6150d7f0527a5c3
child 308399 fa132b061b6ae9ad023adfa15f0cec0840a50211
push id7467
push userjwwang@mozilla.com
push dateThu, 12 Nov 2015 10:21:39 +0000
reviewersroc
bugs1221009
milestone45.0a1
Bug 1221009. Part 2 - remove unused code. r=roc.
dom/media/MediaDecoder.cpp
dom/media/MediaDecoder.h
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -1480,22 +1480,16 @@ MediaDecoder::GetStateMachine() const {
 
 // Drop reference to state machine.  Only called during shutdown dance.
 void
 MediaDecoder::BreakCycles() {
   MOZ_ASSERT(NS_IsMainThread());
   SetStateMachine(nullptr);
 }
 
-MediaDecoderOwner*
-MediaDecoder::GetMediaOwner() const
-{
-  return mOwner;
-}
-
 void
 MediaDecoder::FireTimeUpdate()
 {
   MOZ_ASSERT(NS_IsMainThread());
   if (mShuttingDown) {
     return;
   }
   mOwner->FireTimeUpdate(true);
--- a/dom/media/MediaDecoder.h
+++ b/dom/media/MediaDecoder.h
@@ -503,19 +503,16 @@ public:
 
   // Moves any existing channel loads into or out of background. Background
   // loads don't block the load event. This is called when we stop or restart
   // delaying the load event. This also determines whether any new loads
   // initiated (for example to seek) will be in the background.  This calls
   // SetLoadInBackground() on mResource.
   void SetLoadInBackground(bool aLoadInBackground);
 
-  // Returns a weak reference to the media decoder owner.
-  MediaDecoderOwner* GetMediaOwner() const;
-
   MediaDecoderStateMachine* GetStateMachine() const;
   void SetStateMachine(MediaDecoderStateMachine* aStateMachine);
 
   // Constructs the time ranges representing what segments of the media
   // are buffered and playable.
   virtual media::TimeIntervals GetBuffered();
 
   // Returns the size, in bytes, of the heap memory used by the currently