Bug 1373888 - part1 : remove useless function. r=cpearce,smaug

These functions didn't be used by anyone, remove them.

MozReview-Commit-ID: BLj8GsVp1gR
This commit is contained in:
Alastor Wu
2017-08-29 10:54:18 +08:00
parent 37bddf0395
commit 2bc6bce6d1
5 changed files with 6 additions and 37 deletions

View File

@@ -4172,13 +4172,6 @@ HTMLMediaElement::WakeLockBoolWrapper::~WakeLockBoolWrapper()
}
}
void
HTMLMediaElement::WakeLockBoolWrapper::SetCanPlay(bool aCanPlay)
{
mCanPlay = aCanPlay;
UpdateWakeLock();
}
void
HTMLMediaElement::WakeLockBoolWrapper::UpdateWakeLock()
{
@@ -4188,7 +4181,7 @@ HTMLMediaElement::WakeLockBoolWrapper::UpdateWakeLock()
return;
}
bool playing = (!mValue && mCanPlay);
bool playing = !mValue;
if (playing) {
if (mTimer) {