From 0633ec429984d45130ec398287b0133fa36275cc Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Tue, 30 Jun 2020 17:44:09 +0000 Subject: [PATCH] Bug 1647342 - Part 3: Remove unused detachAllDebuggersFromGlobal Debugger method. r=arai I have no idea how long this has been stale. Differential Revision: https://phabricator.services.mozilla.com/D80736 --- js/src/debugger/Debugger.cpp | 11 ----------- js/src/debugger/Debugger.h | 1 - 2 files changed, 12 deletions(-) diff --git a/js/src/debugger/Debugger.cpp b/js/src/debugger/Debugger.cpp index 69ac57410a68..2dec4a3fe48e 100644 --- a/js/src/debugger/Debugger.cpp +++ b/js/src/debugger/Debugger.cpp @@ -3845,17 +3845,6 @@ void DebugAPI::sweepAll(JSFreeOp* fop) { } } -/* static */ -void Debugger::detachAllDebuggersFromGlobal(JSFreeOp* fop, - GlobalObject* global) { - const Realm::DebuggerVector& debuggers = global->getDebuggers(); - MOZ_ASSERT(!debuggers.empty()); - while (!debuggers.empty()) { - debuggers.back().dbg->removeDebuggeeGlobal(fop, global, nullptr, - Debugger::FromSweep::No); - } -} - static inline bool SweepZonesInSameGroup(Zone* a, Zone* b) { // Ensure two zones are swept in the same sweep group by adding an edge // between them in each direction. diff --git a/js/src/debugger/Debugger.h b/js/src/debugger/Debugger.h index 9e9177cd01d2..80246372167c 100644 --- a/js/src/debugger/Debugger.h +++ b/js/src/debugger/Debugger.h @@ -1089,7 +1089,6 @@ class Debugger : private mozilla::LinkedListElement { WeakGlobalObjectSet::Range allDebuggees() const { return debuggees.all(); } - static void detachAllDebuggersFromGlobal(JSFreeOp* fop, GlobalObject* global); #ifdef DEBUG static bool isDebuggerCrossCompartmentEdge(JSObject* obj, const js::gc::Cell* cell);