diff --git a/js/xpconnect/src/XPCWrappedNativeScope.cpp b/js/xpconnect/src/XPCWrappedNativeScope.cpp index c9ba31e7a2f4..ceadd2b1671b 100644 --- a/js/xpconnect/src/XPCWrappedNativeScope.cpp +++ b/js/xpconnect/src/XPCWrappedNativeScope.cpp @@ -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(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(); }