Bug 1324339. Part 8 - remove unused functions. r=kaku

MozReview-Commit-ID: a68nAvEIyx

--HG--
extra : rebase_source : b632a22ff19409c8fc543e616fa778bd7801b07b
extra : intermediate-source : 962adf7a254271521106d9cb19779c40ec06d305
extra : source : c9b554bfb0ce8a3ef7d9fc0d4c76a97dd70e5989
This commit is contained in:
JW Wang 2016-12-19 16:01:35 +08:00
Родитель ebd411de76
Коммит dfcf976fc9
1 изменённых файлов: 5 добавлений и 15 удалений

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

@ -1382,8 +1382,8 @@ private:
MOZ_ASSERT(false, "Shouldn't want more data for ended video.");
break;
default:
// Reject the promise since we can't finish video seek anyway.
OnSeekTaskRejected(aError);
// Raise an error since we can't finish video seek anyway.
mMaster->DecodeError(aError);
break;
}
return;
@ -1432,8 +1432,8 @@ private:
case MediaData::VIDEO_DATA:
{
if (NeedMoreVideo()) {
// Reject if we can't finish video seeking.
OnSeekTaskRejected(NS_ERROR_DOM_MEDIA_CANCELED);
// Error out if we can't finish video seeking.
mMaster->DecodeError(NS_ERROR_DOM_MEDIA_CANCELED);
return;
}
MaybeFinishSeek();
@ -1451,16 +1451,6 @@ private:
return mSeekJob.mTarget->GetTime().ToMicroseconds();
}
void OnSeekTaskResolved()
{
SeekCompleted();
}
void OnSeekTaskRejected(MediaResult aError)
{
mMaster->DecodeError(aError);
}
void RequestVideoData()
{
Reader()->RequestVideoData(false, media::TimeUnit());
@ -1516,7 +1506,7 @@ private:
return aSampleTime < time;
});
OnSeekTaskResolved();
SeekCompleted();
}
}