Bug 1443236 - remove static init and shutdown nsRegion routines; r=kats

These routines are no-ops; let's get rid of them.
This commit is contained in:
Nathan Froyd 2018-03-05 14:06:50 -05:00
Родитель d1fd0be305
Коммит 062f6d980e
4 изменённых файлов: 0 добавлений и 26 удалений

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

@ -128,11 +128,6 @@ PluginProcessChild::Init(int aArgc, char* aArgv[])
# error Sorry
#endif
if (NS_FAILED(nsRegion::InitStatic())) {
NS_ERROR("Could not initialize nsRegion");
return false;
}
bool retval = mPlugin.InitForChrome(pluginFilename, ParentPid(),
IOThreadChild::message_loop(),
IOThreadChild::channel());
@ -164,8 +159,6 @@ PluginProcessChild::CleanUp()
mozilla::KillClearOnShutdown(ShutdownPhase::ShutdownFinal);
NS_LogTerm();
#endif
nsRegion::ShutdownStatic();
}
} // namespace plugins

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

@ -93,15 +93,6 @@ public:
aOther->mImpl = tmp;
}
static
nsresult InitStatic()
{
return NS_OK;
}
static
void ShutdownStatic() {}
void AndWith(const nsRegion& aOther)
{
And(*this, aOther);

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

@ -22,9 +22,6 @@ IPDLUnitTestProcessChild::Init(int aArgc, char* aArgv[])
ParentPid(),
IOThreadChild::message_loop());
if (NS_FAILED(nsRegion::InitStatic()))
return false;
return true;
}

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

@ -161,11 +161,6 @@ nsLayoutStatics::Initialize()
NS_SetStaticAtomsDone();
StartupJSEnvironment();
rv = nsRegion::InitStatic();
if (NS_FAILED(rv)) {
NS_ERROR("Could not initialize nsRegion");
return rv;
}
nsGlobalWindowInner::Init();
nsGlobalWindowOuter::Init();
@ -423,8 +418,6 @@ nsLayoutStatics::Shutdown()
mozilla::dom::FallbackEncoding::Shutdown();
nsRegion::ShutdownStatic();
mozilla::EventDispatcher::Shutdown();
HTMLInputElement::DestroyUploadLastDir();