Bug 1343431 - Remove unused AbstractMediaDecoder::DispatchUpdateEstimatedMediaDuration().
MozReview-Commit-ID: 2f3JeVtWkJ8
--- a/dom/media/AbstractMediaDecoder.h
+++ b/dom/media/AbstractMediaDecoder.h
@@ -96,22 +96,16 @@ public:
}
// Return an abstract thread on which to run main thread runnables.
virtual AbstractThread* AbstractMainThread() const = 0;
protected:
virtual void UpdateEstimatedMediaDuration(int64_t aDuration) { };
public:
- void DispatchUpdateEstimatedMediaDuration(int64_t aDuration)
- {
- NS_DispatchToMainThread(NewRunnableMethod<int64_t>(
- this, &AbstractMediaDecoder::UpdateEstimatedMediaDuration, aDuration));
- }
-
virtual VideoFrameContainer* GetVideoFrameContainer() = 0;
virtual mozilla::layers::ImageContainer* GetImageContainer() = 0;
// Returns the owner of this decoder or null when the decoder is shutting
// down. The owner should only be used on the main thread.
virtual MediaDecoderOwner* GetOwner() const = 0;
// Set by Reader if the current audio track can be offloaded