зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1411480 (attempt 2) - Inline and remove pref_[SG]etInitPhase(). r=glandium.
They both have a single use. MozReview-Commit-ID: 4Jj64B6NV0o --HG-- extra : rebase_source : 19c1d93393688daee5b7670be241785639df81d2
This commit is contained in:
Родитель
3418db65be
Коммит
9e821ded90
|
@ -999,18 +999,6 @@ pref_SetValue(PrefValue* aExistingValue,
|
|||
|
||||
static pref_initPhase gPhase = START;
|
||||
|
||||
static void
|
||||
pref_SetInitPhase(pref_initPhase aPhase)
|
||||
{
|
||||
gPhase = aPhase;
|
||||
}
|
||||
|
||||
static pref_initPhase
|
||||
pref_GetInitPhase()
|
||||
{
|
||||
return gPhase;
|
||||
}
|
||||
|
||||
struct StringComparator
|
||||
{
|
||||
const char* mKey;
|
||||
|
@ -4241,15 +4229,15 @@ Preferences::GetPreferences(InfallibleTArray<PrefSetting>* aPrefs)
|
|||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
Preferences::SetInitPhase(pref_initPhase phase)
|
||||
Preferences::SetInitPhase(pref_initPhase aPhase)
|
||||
{
|
||||
pref_SetInitPhase(phase);
|
||||
gPhase = aPhase;
|
||||
}
|
||||
|
||||
pref_initPhase
|
||||
Preferences::InitPhase()
|
||||
{
|
||||
return pref_GetInitPhase();
|
||||
return gPhase;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче