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:
Jan de Mooij 2019-03-07 19:05:36 +00:00
Родитель d10c24ea6a
Коммит b196cb4d46
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -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