mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1174594 (part 3) - Remove ShutdownData. r=mrbkap.
It's written to but never read from.
This commit is contained in:
parent
8f06725812
commit
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user