From bdd00e6e97acf6301803b45b98cbaad78b0f3469 Mon Sep 17 00:00:00 2001 From: JW Wang Date: Wed, 18 May 2016 15:26:36 +0800 Subject: [PATCH] Bug 1273774. Part 3 - remove members no longer used. r=jya. MozReview-Commit-ID: E4OgqAOzqnr --HG-- extra : rebase_source : 70722fcb1260d98df9216f457377929f36f39420 --- dom/media/platforms/agnostic/AgnosticDecoderModule.cpp | 4 +--- dom/media/platforms/agnostic/WAVDecoder.cpp | 3 --- dom/media/platforms/agnostic/WAVDecoder.h | 3 --- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp b/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp index b38659abcdd1..ce275337107a 100644 --- a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp +++ b/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp @@ -59,9 +59,7 @@ AgnosticDecoderModule::CreateAudioDecoder(const AudioInfo& aConfig, aAudioTaskQueue, aCallback); } else if (WaveDataDecoder::IsWave(aConfig.mMimeType)) { - m = new WaveDataDecoder(*aConfig.GetAsAudioInfo(), - aAudioTaskQueue, - aCallback); + m = new WaveDataDecoder(*aConfig.GetAsAudioInfo(), aCallback); } return m.forget(); diff --git a/dom/media/platforms/agnostic/WAVDecoder.cpp b/dom/media/platforms/agnostic/WAVDecoder.cpp index c4f127690ae9..855dda39d1ae 100644 --- a/dom/media/platforms/agnostic/WAVDecoder.cpp +++ b/dom/media/platforms/agnostic/WAVDecoder.cpp @@ -47,12 +47,9 @@ DecodeULawSample(uint8_t aValue) } WaveDataDecoder::WaveDataDecoder(const AudioInfo& aConfig, - TaskQueue* aTaskQueue, MediaDataDecoderCallback* aCallback) : mInfo(aConfig) - , mTaskQueue(aTaskQueue) , mCallback(aCallback) - , mIsFlushing(false) { } diff --git a/dom/media/platforms/agnostic/WAVDecoder.h b/dom/media/platforms/agnostic/WAVDecoder.h index 0eb29706dfcc..6e1b2d044bc1 100644 --- a/dom/media/platforms/agnostic/WAVDecoder.h +++ b/dom/media/platforms/agnostic/WAVDecoder.h @@ -16,7 +16,6 @@ class WaveDataDecoder : public MediaDataDecoder { public: WaveDataDecoder(const AudioInfo& aConfig, - TaskQueue* aTaskQueue, MediaDataDecoderCallback* aCallback); // Return true if mimetype is Wave @@ -36,9 +35,7 @@ private: bool DoDecode(MediaRawData* aSample); const AudioInfo& mInfo; - const RefPtr mTaskQueue; MediaDataDecoderCallback* mCallback; - Atomic mIsFlushing; }; } // namespace mozilla