зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1771173 - Remove unused imports. r=geckoview-reviewers,arai,owlish
Differential Revision: https://phabricator.services.mozilla.com/D149786
This commit is contained in:
Родитель
6d8a9d2dbb
Коммит
c6c1957341
|
@ -103,9 +103,9 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
|
|||
WindowsRegistry: "resource://gre/modules/WindowsRegistry.jsm",
|
||||
});
|
||||
|
||||
// PluginManager is used in the listeners object below.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
AboutLoginsParent: "resource:///modules/AboutLoginsParent.jsm",
|
||||
PluginManager: "resource:///actors/PluginParent.jsm",
|
||||
});
|
||||
|
||||
|
|
|
@ -29,12 +29,6 @@ let { getChromeWindow } = ChromeUtils.import(
|
|||
);
|
||||
const { UIState } = ChromeUtils.import("resource://services-sync/UIState.jsm");
|
||||
|
||||
const lazy = {};
|
||||
|
||||
XPCOMUtils.defineLazyGetter(lazy, "FxAccountsCommon", function() {
|
||||
return ChromeUtils.import("resource://gre/modules/FxAccountsCommon.js");
|
||||
});
|
||||
|
||||
let log = ChromeUtils.import(
|
||||
"resource://gre/modules/Log.jsm"
|
||||
).Log.repository.getLogger("Sync.RemoteTabs");
|
||||
|
|
|
@ -29,11 +29,6 @@ const { createLazyLoaders } = ChromeUtils.import(
|
|||
const lazy = createLazyLoaders({
|
||||
Chrome: () => require("chrome"),
|
||||
Services: () => require("Services"),
|
||||
OS: () => ChromeUtils.import("resource://gre/modules/osfile.jsm"),
|
||||
PerfSymbolication: () =>
|
||||
ChromeUtils.import(
|
||||
"resource://devtools/client/performance-new/symbolication.jsm.js"
|
||||
),
|
||||
});
|
||||
|
||||
/** @type {PerformancePref["UIBaseUrl"]} */
|
||||
|
|
|
@ -80,7 +80,6 @@ ChromeUtils.defineModuleGetter(
|
|||
// global state of the profiler, and only are used during specific funcationality like
|
||||
// symbolication or capturing a profile.
|
||||
const lazy = createLazyLoaders({
|
||||
OS: () => ChromeUtils.import("resource://gre/modules/osfile.jsm"),
|
||||
Utils: () => require("devtools/client/performance-new/utils"),
|
||||
BrowserModule: () => require("devtools/client/performance-new/browser"),
|
||||
RecordingUtils: () =>
|
||||
|
|
|
@ -17,8 +17,6 @@ const lazy = {};
|
|||
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
FormLikeFactory: "resource://gre/modules/FormLikeFactory.jsm",
|
||||
GeckoViewAutofill: "resource://gre/modules/GeckoViewAutofill.jsm",
|
||||
WebNavigationFrames: "resource://gre/modules/WebNavigationFrames.jsm",
|
||||
LoginManagerChild: "resource://gre/modules/LoginManagerChild.jsm",
|
||||
});
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ const SCREEN_ORIENTATION_LANDSCAPE = 1;
|
|||
const lazy = {};
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
E10SUtils: "resource://gre/modules/E10SUtils.jsm",
|
||||
PrivacyFilter: "resource://gre/modules/sessionstore/PrivacyFilter.jsm",
|
||||
SessionHistory: "resource://gre/modules/sessionstore/SessionHistory.jsm",
|
||||
Utils: "resource://gre/modules/sessionstore/Utils.jsm",
|
||||
|
|
|
@ -14,11 +14,6 @@ ChromeUtils.defineModuleGetter(
|
|||
"resource://gre/modules/FileUtils.jsm"
|
||||
);
|
||||
ChromeUtils.defineModuleGetter(lazy, "OS", "resource://gre/modules/osfile.jsm");
|
||||
ChromeUtils.defineModuleGetter(
|
||||
lazy,
|
||||
"CommonUtils",
|
||||
"resource://services-common/utils.js"
|
||||
);
|
||||
|
||||
const { Preferences } = ChromeUtils.import(
|
||||
"resource://gre/modules/Preferences.jsm"
|
||||
|
|
|
@ -26,8 +26,6 @@ const { Observers } = ChromeUtils.import(
|
|||
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
BulkKeyBundle: "resource://services-sync/keys.js",
|
||||
CommonUtils: "resource://services-common/utils.js",
|
||||
CryptoUtils: "resource://services-crypto/utils.js",
|
||||
CryptoWrapper: "resource://services-sync/record.js",
|
||||
});
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
|
|||
Utils: "resource://services-settings/Utils.jsm",
|
||||
FilterExpressions:
|
||||
"resource://gre/modules/components-utils/FilterExpressions.jsm",
|
||||
RemoteSettingsWorker: "resource://services-settings/RemoteSettingsWorker.jsm",
|
||||
});
|
||||
|
||||
const PREF_SETTINGS_BRANCH = "services.settings.";
|
||||
|
|
|
@ -27,7 +27,6 @@ const { RawCryptoWrapper } = ChromeUtils.import(
|
|||
const lazy = {};
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
Async: "resource://services-common/async.js",
|
||||
Log: "resource://gre/modules/Log.jsm",
|
||||
PlacesUtils: "resource://gre/modules/PlacesUtils.jsm",
|
||||
});
|
||||
|
|
|
@ -43,12 +43,6 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
|
|||
PlacesUtils: "resource://gre/modules/PlacesUtils.jsm",
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(lazy, "fxAccounts", () => {
|
||||
return ChromeUtils.import(
|
||||
"resource://gre/modules/FxAccounts.jsm"
|
||||
).getFxAccountsSingleton();
|
||||
});
|
||||
|
||||
function ensureDirectory(path) {
|
||||
let basename = lazy.OS.Path.dirname(path);
|
||||
return lazy.OS.File.makeDir(basename, {
|
||||
|
|
|
@ -41,12 +41,6 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
|
|||
SyncedBookmarksMirror: "resource://gre/modules/SyncedBookmarksMirror.jsm",
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(lazy, "PlacesBundle", () => {
|
||||
return Services.strings.createBundle(
|
||||
"chrome://places/locale/places.properties"
|
||||
);
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(lazy, "ANNOS_TO_TRACK", () => [
|
||||
lazy.PlacesUtils.LMANNO_FEEDURI,
|
||||
lazy.PlacesUtils.LMANNO_SITEURI,
|
||||
|
|
|
@ -56,12 +56,6 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
|
|||
PlacesUtils: "resource://gre/modules/PlacesUtils.jsm",
|
||||
});
|
||||
|
||||
ChromeUtils.defineModuleGetter(
|
||||
lazy,
|
||||
"ExperimentAPI",
|
||||
"resource://nimbus/ExperimentAPI.jsm"
|
||||
);
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
NimbusFeatures: "resource://nimbus/ExperimentAPI.jsm",
|
||||
});
|
||||
|
|
|
@ -49,12 +49,6 @@ XPCOMUtils.defineLazyGetter(lazy, "fxAccounts", () => {
|
|||
).getFxAccountsSingleton();
|
||||
});
|
||||
|
||||
ChromeUtils.defineModuleGetter(
|
||||
lazy,
|
||||
"CommonUtils",
|
||||
"resource://services-common/utils.js"
|
||||
);
|
||||
|
||||
XPCOMUtils.defineLazyGetter(lazy, "log", function() {
|
||||
let log = Log.repository.getLogger("Sync.SyncAuthManager");
|
||||
log.manageLevelFromPref("services.sync.log.logger.identity");
|
||||
|
|
|
@ -12,7 +12,6 @@ const lazy = {};
|
|||
|
||||
XPCOMUtils.defineLazyModuleGetters(lazy, {
|
||||
SearchEngine: "resource://gre/modules/SearchEngine.jsm",
|
||||
SearchUtils: "resource://gre/modules/SearchUtils.jsm",
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче