mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174594 (part 3) - Remove ShutdownData. r=mrbkap.
It's written to but never read from.
This commit is contained in:
parent
bb79cc6659
commit
0977cb9515
@ -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