Bug 1373589 - Remove MediaResourceCallback::NotifyDecodeError which has no callers at all. r=kaku

MozReview-Commit-ID: D2xqWHIiRBv

--HG--
extra : rebase_source : cc933811af40af3bebdbb8f3f1ca030cc8c622ef
This commit is contained in:
JW Wang 2017-06-16 17:36:30 +08:00
Родитель 3e6f20f54d
Коммит 27d3284709
3 изменённых файлов: 0 добавлений и 16 удалений

Просмотреть файл

@ -186,18 +186,6 @@ MediaDecoder::ResourceCallback::NotifyNetworkError()
}
}
void
MediaDecoder::ResourceCallback::NotifyDecodeError()
{
RefPtr<ResourceCallback> self = this;
nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction([=] () {
if (self->mDecoder) {
self->mDecoder->DecodeError(NS_ERROR_DOM_MEDIA_FATAL_ERR);
}
});
mAbstractMainThread->Dispatch(r.forget());
}
/* static */ void
MediaDecoder::ResourceCallback::TimerCallback(nsITimer* aTimer, void* aClosure)
{

Просмотреть файл

@ -111,7 +111,6 @@ public:
MediaDecoderOwner* GetMediaOwner() const override;
void SetInfinite(bool aInfinite) override;
void NotifyNetworkError() override;
void NotifyDecodeError() override;
void NotifyDataArrived() override;
void NotifyBytesDownloaded() override;
void NotifyDataEnded(nsresult aStatus) override;

Просмотреть файл

@ -37,9 +37,6 @@ public:
// Notify that a network error is encountered.
virtual void NotifyNetworkError() {}
// Notify that decoding has failed.
virtual void NotifyDecodeError() {}
// Notify that data arrives on the stream and is read into the cache.
virtual void NotifyDataArrived() {}