зеркало из https://github.com/mozilla/gecko-dev.git
Remove unused imports. r=trivial (no bug)
MozReview-Commit-ID: EEVSPkAgORY --HG-- extra : rebase_source : 8a3da61bdf0f65c518e6cea3c6f5cacf42c6d24d
This commit is contained in:
Родитель
eb27ee5903
Коммит
541e9a6989
|
@ -5,8 +5,7 @@
|
|||
// The ext-* files are imported into the same scopes.
|
||||
/* import-globals-from ext-browserAction.js */
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
|
||||
"resource://gre/modules/PlacesUtils.jsm");
|
||||
Cu.import("resource://gre/modules/PlacesUtils.jsm");
|
||||
|
||||
const {
|
||||
TYPE_BOOKMARK,
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
/* import-globals-from ext-devtools.js */
|
||||
/* import-globals-from ext-browser.js */
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "DevToolsShim",
|
||||
"chrome://devtools-shim/content/DevToolsShim.jsm");
|
||||
|
||||
var {
|
||||
SpreadArgs,
|
||||
} = ExtensionCommon;
|
||||
|
|
|
@ -6,10 +6,9 @@
|
|||
/* import-globals-from ../../../toolkit/components/extensions/ext-toolkit.js */
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.importGlobalProperties(["fetch", "TextEncoder", "TextDecoder"]);
|
||||
Cu.importGlobalProperties(["TextEncoder", "TextDecoder"]);
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "OS", "resource://gre/modules/osfile.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "ParseSymbols", "resource:///modules/ParseSymbols.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Subprocess", "resource://gre/modules/Subprocess.jsm");
|
||||
|
||||
const PREF_ASYNC_STACK = "javascript.options.asyncstack";
|
||||
|
|
|
@ -5,11 +5,6 @@
|
|||
// The ext-* files are imported into the same scopes.
|
||||
/* import-globals-from ext-browser.js */
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "CustomizableUI",
|
||||
"resource:///modules/CustomizableUI.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Services",
|
||||
"resource://gre/modules/Services.jsm");
|
||||
|
||||
Cu.import("resource://gre/modules/ExtensionParent.jsm");
|
||||
|
||||
var {
|
||||
|
|
|
@ -36,11 +36,8 @@ const Cc = Components.classes;
|
|||
const Cu = Components.utils;
|
||||
const Cr = Components.results;
|
||||
|
||||
Cu.importGlobalProperties(["TextEncoder"]);
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.importGlobalProperties(["fetch"]);
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetters(this, {
|
||||
AddonManager: "resource://gre/modules/AddonManager.jsm",
|
||||
|
|
|
@ -14,12 +14,10 @@ this.EXPORTED_SYMBOLS = ["ExtensionChildDevToolsUtils"];
|
|||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/EventEmitter.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "EventEmitter",
|
||||
"resource://gre/modules/EventEmitter.jsm");
|
||||
|
||||
// Create a variable to hold the cached ThemeChangeObserver which does not
|
||||
// get created until a devtools context has been created.
|
||||
let themeChangeObserver;
|
||||
|
|
|
@ -6,7 +6,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
|
||||
XPCOMUtils.defineLazyModuleGetters(this, {
|
||||
ExtensionParent: "resource://gre/modules/ExtensionParent.jsm",
|
||||
ExtensionUtils: "resource://gre/modules/ExtensionUtils.jsm",
|
||||
JSONFile: "resource://gre/modules/JSONFile.jsm",
|
||||
OS: "resource://gre/modules/osfile.jsm",
|
||||
});
|
||||
|
|
|
@ -47,7 +47,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
Cu.import("resource://gre/modules/ExtensionUtils.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetters(this, {
|
||||
AsyncShutdown: "resource://gre/modules/AsyncShutdown.jsm",
|
||||
BulkKeyBundle: "resource://services-sync/keys.js",
|
||||
CollectionKeyManager: "resource://services-sync/record.js",
|
||||
CommonUtils: "resource://services-common/utils.js",
|
||||
|
|
|
@ -21,8 +21,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AddonManager",
|
||||
"resource://gre/modules/AddonManager.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
||||
"resource://gre/modules/AppConstants.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Extension",
|
||||
"resource://gre/modules/Extension.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "ExtensionParent",
|
||||
|
|
|
@ -13,8 +13,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "ConsoleAPI",
|
||||
"resource://gre/modules/Console.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "OS",
|
||||
"resource://gre/modules/osfile.jsm");
|
||||
|
||||
function getConsole() {
|
||||
return new ConsoleAPI({
|
||||
|
|
|
@ -8,7 +8,6 @@ XPCOMUtils.defineLazyServiceGetter(this, "handlerService",
|
|||
XPCOMUtils.defineLazyServiceGetter(this, "protocolService",
|
||||
"@mozilla.org/uriloader/external-protocol-service;1",
|
||||
"nsIExternalProtocolService");
|
||||
Cu.importGlobalProperties(["URL"]);
|
||||
|
||||
const hasHandlerApp = handlerConfig => {
|
||||
let protoInfo = protocolService.getProtocolHandlerInfo(handlerConfig.protocol);
|
||||
|
|
Загрузка…
Ссылка в новой задаче