зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1533302 part 1 - Remove unused XPCWrappedNativeScope::IsDyingScope. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D22491 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d10c24ea6a
Коммит
b196cb4d46
|
@ -90,16 +90,6 @@ XPCWrappedNativeScope::XPCWrappedNativeScope(JS::Compartment* aCompartment,
|
|||
mAllowContentXBLScope = !RemoteXULForbidsXBLScope(aFirstGlobal);
|
||||
}
|
||||
|
||||
// static
|
||||
bool XPCWrappedNativeScope::IsDyingScope(XPCWrappedNativeScope* scope) {
|
||||
for (XPCWrappedNativeScope* cur = gDyingScopes; cur; cur = cur->mNext) {
|
||||
if (scope == cur) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool XPCWrappedNativeScope::GetComponentsJSObject(JS::MutableHandleObject obj) {
|
||||
AutoJSContext cx;
|
||||
if (!mComponents) {
|
||||
|
|
|
@ -886,8 +886,6 @@ class XPCWrappedNativeScope final {
|
|||
|
||||
void AddSizeOfIncludingThis(JSContext* cx, ScopeSizeInfo* scopeSizeInfo);
|
||||
|
||||
static bool IsDyingScope(XPCWrappedNativeScope* scope);
|
||||
|
||||
// Gets the appropriate scope object for XBL in this compartment. This method
|
||||
// relies on compartment-per-global still (and release-asserts this). The
|
||||
// context must be same-realm with this compartment's single global upon
|
||||
|
|
Загрузка…
Ссылка в новой задаче