From c4e89cce871dcf1617379f3934c05ee5f893cc50 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 18 Jun 2015 15:34:27 -0700 Subject: [PATCH] Bug 1174594 (part 3) - Remove ShutdownData. r=mrbkap. It's written to but never read from. --- js/xpconnect/src/XPCWrappedNativeScope.cpp | 13 ------------- 1 file changed, 13 deletions(-) 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(); }