Bug 1457064 - Linting errors: calendar/base/modules/utils/calACLUtils.jsm:8:1 | 'cal' is defined but never used. r=philipp a=philipp
authorMartin Schroeder <mschroeder@mozilla.x-home.org>
Fri, 27 Apr 2018 20:49:06 +0200
changeset 31427 038d086bc27ce0dc2dbf6f2bb11658028a8c85f8
parent 31426 700521028a064b3a6ff44c16581b95087542dad0
child 31428 716b72efa5eb590a0c8a0f78e5474749bd0ec4bc
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersphilipp, philipp
bugs1457064
Bug 1457064 - Linting errors: calendar/base/modules/utils/calACLUtils.jsm:8:1 | 'cal' is defined but never used. r=philipp a=philipp
calendar/base/modules/utils/calACLUtils.jsm
calendar/base/modules/utils/calXMLUtils.jsm
--- a/calendar/base/modules/utils/calACLUtils.jsm
+++ b/calendar/base/modules/utils/calACLUtils.jsm
@@ -1,16 +1,13 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 ChromeUtils.import("resource://gre/modules/Services.jsm");
-ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "cal", "resource://calendar/modules/calUtils.jsm", "cal");
 
 /*
  * Helpers for permission checks and other ACL features
  */
 
 // NOTE: This module should not be loaded directly, it is available when
 // including calUtils.jsm under the cal.acl namespace.
 
--- a/calendar/base/modules/utils/calXMLUtils.jsm
+++ b/calendar/base/modules/utils/calXMLUtils.jsm
@@ -1,16 +1,12 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
-
-XPCOMUtils.defineLazyModuleGetter(this, "cal", "resource://calendar/modules/calUtils.jsm", "cal");
-
 Components.utils.importGlobalProperties(["XMLHttpRequest"]);
 
 /*
  * Helper functions for parsing and serializing XML
  */
 
 // NOTE: This module should not be loaded directly, it is available when
 // including calUtils.jsm under the cal.xml namespace.