From 1f193575a44d371c58df22306eb5436314b3bbc7 Mon Sep 17 00:00:00 2001 From: Jan de Mooij Date: Thu, 26 Jul 2018 10:57:15 +0200 Subject: [PATCH] Bug 1478275 part 1 - Remove unused CompartmentPrivate::isAddonCompartment. r=bholley --- js/xpconnect/src/XPCJSRuntime.cpp | 1 - js/xpconnect/src/xpcprivate.h | 5 ----- 2 files changed, 6 deletions(-) diff --git a/js/xpconnect/src/XPCJSRuntime.cpp b/js/xpconnect/src/XPCJSRuntime.cpp index 2cfb6c735f54..9bf057cc2a7d 100644 --- a/js/xpconnect/src/XPCJSRuntime.cpp +++ b/js/xpconnect/src/XPCJSRuntime.cpp @@ -215,7 +215,6 @@ CompartmentPrivate::CompartmentPrivate(JS::Compartment* c) , isWebExtensionContentScript(false) , allowCPOWs(false) , isContentXBLCompartment(false) - , isAddonCompartment(false) , universalXPConnectEnabled(false) , forcePermissiveCOWs(false) , wasNuked(false) diff --git a/js/xpconnect/src/xpcprivate.h b/js/xpconnect/src/xpcprivate.h index a20898bdd9e8..2c646ecdffab 100644 --- a/js/xpconnect/src/xpcprivate.h +++ b/js/xpconnect/src/xpcprivate.h @@ -2873,11 +2873,6 @@ public: // such a compartment is a content XBL scope. bool isContentXBLCompartment; - // True if EnsureAddonCompartment has been called for this compartment. - // Note that this is false for extensions that ship with the browser, like - // browser/extensions/activity-stream. - bool isAddonCompartment; - // This is only ever set during mochitest runs when enablePrivilege is called. // It's intended as a temporary stopgap measure until we can finish ripping out // enablePrivilege. Once set, this value is never unset (i.e., it doesn't follow