зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d1fd0be305
Коммит
062f6d980e
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче