Commit f75d916b authored by Adrien Dorsaz's avatar Adrien Dorsaz

clean global var Cu since ChromeUtils is used instead of it

Commands:
```sh
# Erase var Cu initialization
git grep -l 'var Cu = Components.utils;' | xargs sed -i 's/var Cu = Components.utils;//g'
# Find files to not commit with this change due to usage of the var:
git grep -l 'Cu\.'
```
parent ffee0563
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -24,7 +24,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchExchangeContactSettings(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -20,7 +20,7 @@
*
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -21,7 +21,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -35,7 +35,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -35,7 +35,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -27,7 +27,7 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
......@@ -27,7 +27,7 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
......@@ -35,7 +35,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -3,7 +3,7 @@
*/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -7,7 +7,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchCalendarCreation(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -27,7 +27,7 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
......@@ -29,7 +29,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
//ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
......
......@@ -7,7 +7,7 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -33,7 +33,7 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -38,7 +38,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -7,7 +7,7 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -7,7 +7,7 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
......@@ -34,7 +34,7 @@
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -7,7 +7,7 @@
* http://www.gnu.org/licenses/gpl.html
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -38,7 +38,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -20,7 +20,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -34,7 +34,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -18,7 +18,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchAddressingWidgetOverlay(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -19,7 +19,7 @@ var managersignum;
var searchemail;
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var calWinId = window.arguments[0].calendar.id;
var calPreferences = Cc["@mozilla.org/preferences-service;1"]
......
......@@ -27,7 +27,7 @@
* the Initial Developer. All Rights Reserved.
*
* ***** BEGIN LICENSE BLOCK *****/
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
var Cr = Components.results;
var components = Components;
......
......@@ -29,7 +29,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource:///modules/mailServices.js");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
......
......@@ -7,7 +7,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchExchangeCloneSettings(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://exchangecommon/ecExchangeRequest.js");
......
......@@ -35,7 +35,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
......
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function lightningTimzone(aDocument, aWindow) {
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
ChromeUtils.import("resource://exchangecommon/erAutoDiscover.js");
......
......@@ -22,7 +22,7 @@
* ***** BEGIN LICENSE BLOCK *****/
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://exchangecommon/ecFunctions.js");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
......
......@@ -39,7 +39,7 @@
var Cc = Components.classes;
var Ci = Components.interfaces;
var Cu = Components.utils;
function exchOtherPreferences(aDocument, aWindow) {
this._document = aDocument;
......
......@@ -36,7 +36,7 @@
var Cc = Components.classes;