зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1174594 (part 3) - Remove ShutdownData. r=mrbkap.
It's written to but never read from.
This commit is contained in:
Родитель
8f06725812
Коммит
c4e89cce87
|
@ -620,23 +620,12 @@ XPCWrappedNativeScope::KillDyingScopes()
|
|||
gDyingScopes = nullptr;
|
||||
}
|
||||
|
||||
struct ShutdownData
|
||||
{
|
||||
ShutdownData()
|
||||
: wrapperCount(0),
|
||||
protoCount(0) {}
|
||||
int wrapperCount;
|
||||
int protoCount;
|
||||
};
|
||||
|
||||
//static
|
||||
void
|
||||
XPCWrappedNativeScope::SystemIsBeingShutDown()
|
||||
{
|
||||
int liveScopeCount = 0;
|
||||
|
||||
ShutdownData data;
|
||||
|
||||
XPCWrappedNativeScope* cur;
|
||||
|
||||
// First move all the scopes to the dying list.
|
||||
|
@ -665,7 +654,6 @@ XPCWrappedNativeScope::SystemIsBeingShutDown()
|
|||
for (auto i = cur->mWrappedNativeProtoMap->RemovingIter(); !i.Done(); i.Next()) {
|
||||
auto entry = static_cast<ClassInfo2WrappedNativeProtoMap::Entry*>(i.Get());
|
||||
entry->value->SystemIsBeingShutDown();
|
||||
data.protoCount++;
|
||||
i.Remove();
|
||||
}
|
||||
for (auto i = cur->mWrappedNativeMap->RemovingIter(); !i.Done(); i.Next()) {
|
||||
|
@ -673,7 +661,6 @@ XPCWrappedNativeScope::SystemIsBeingShutDown()
|
|||
XPCWrappedNative* wrapper = entry->value;
|
||||
if (wrapper->IsValid()) {
|
||||
wrapper->SystemIsBeingShutDown();
|
||||
data.wrapperCount++;
|
||||
}
|
||||
i.Remove();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче