Bug 1331329. Part 1 - remove EnterDormant() which is a one-line function. r=kaku

MozReview-Commit-ID: AaUPDAm24iB

--HG--
extra : rebase_source : f28fe3caa29ca5369e9b87c17d113b22982df509
extra : source : c2424f3a8477b30cc9337c1b5d439d886dbd971f
This commit is contained in:
JW Wang 2017-01-16 16:39:56 +08:00
Родитель 9351317624
Коммит 76d341d8fc
1 изменённых файлов: 2 добавлений и 7 удалений

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

@ -812,11 +812,6 @@ private:
}
}
void EnterDormant()
{
SetState<DormantState>();
}
void StartDormantTimer()
{
if (!mMaster->mMediaSeekable) {
@ -831,7 +826,7 @@ private:
return;
} else if (timeout == 0) {
// Enter dormant immediately without scheduling a timer.
EnterDormant();
SetState<DormantState>();
return;
}
@ -841,7 +836,7 @@ private:
mDormantTimer.Ensure(target,
[this] () {
mDormantTimer.CompleteRequest();
EnterDormant();
SetState<DormantState>();
}, [this] () {
mDormantTimer.CompleteRequest();
});