Bug 1364645 - Removed superfluous import of Task.jsm; r=darktrojan
authorJorg K <jorgk@jorgk.com>
Tue, 20 Nov 2018 21:21:59 +1300
changeset 33744 614e7c6b92064d9985d9e300b6f22ddf15925c48
parent 33743 aa07a415e6471232454abc757e172b11693baa08
child 33745 a0668a318ffa20ee1f5c965d846d7bcfe4a3b88f
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersdarktrojan
bugs1364645
Bug 1364645 - Removed superfluous import of Task.jsm; r=darktrojan
mailnews/base/src/msgAsyncPrompter.js
mailnews/imap/test/unit/test_imapFilterActions.js
mailnews/imap/test/unit/test_imapFilterActionsPostplugin.js
mailnews/local/test/unit/test_movemailDownload.js
mailnews/mime/jsmime/test/head_xpcshell_glue.js
mailnews/test/resources/NetworkTestUtils.jsm
--- a/mailnews/base/src/msgAsyncPrompter.js
+++ b/mailnews/base/src/msgAsyncPrompter.js
@@ -1,15 +1,14 @@
 /* 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/Deprecated.jsm");
 ChromeUtils.import("resource://gre/modules/Services.jsm");
-ChromeUtils.import("resource://gre/modules/Task.jsm");
 ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
 ChromeUtils.import("resource:///modules/gloda/log4moz.js");
 
 function runnablePrompter(asyncPrompter, hashKey) {
   this._asyncPrompter = asyncPrompter;
   this._hashKey = hashKey;
 }
 
--- a/mailnews/imap/test/unit/test_imapFilterActions.js
+++ b/mailnews/imap/test/unit/test_imapFilterActions.js
@@ -5,17 +5,16 @@
  * on the message database of the filters. Effects on IMAP server
  * flags, if any, are not tested.
  *
  * Original author: Kent James <kent@caspia.com>
  * adapted from test_localToImapFilter.js
  */
 
 ChromeUtils.import("resource:///modules/folderUtils.jsm");
-ChromeUtils.import("resource://gre/modules/Task.jsm");
 
 var nsMsgSearchScope = Ci.nsMsgSearchScope;
 var nsMsgSearchAttrib = Ci.nsMsgSearchAttrib;
 var nsMsgSearchOp = Ci.nsMsgSearchOp;
 var Is = nsMsgSearchOp.Is;
 var Contains = nsMsgSearchOp.Contains;
 var Subject = nsMsgSearchAttrib.Subject;
 var Body = nsMsgSearchAttrib.Body;
--- a/mailnews/imap/test/unit/test_imapFilterActionsPostplugin.js
+++ b/mailnews/imap/test/unit/test_imapFilterActionsPostplugin.js
@@ -3,17 +3,16 @@
  *
  * Original author: Kent James <kent@caspia.com>
  * adapted from test_imapFilterActions.js
  */
 
 ChromeUtils.import("resource:///modules/folderUtils.jsm");
 ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
 ChromeUtils.import("resource:///modules/MailServices.jsm");
-ChromeUtils.import("resource://gre/modules/Task.jsm");
 
 var nsMsgSearchScope = Ci.nsMsgSearchScope;
 var nsMsgSearchAttrib = Ci.nsMsgSearchAttrib;
 var nsMsgSearchOp = Ci.nsMsgSearchOp;
 var Is = nsMsgSearchOp.Is;
 var Contains = nsMsgSearchOp.Contains;
 var Subject = nsMsgSearchAttrib.Subject;
 var Body = nsMsgSearchAttrib.Body;
--- a/mailnews/local/test/unit/test_movemailDownload.js
+++ b/mailnews/local/test/unit/test_movemailDownload.js
@@ -1,15 +1,14 @@
 /**
  * The intent of this file is to test that movemail download code
  * works correctly.
  */
 ChromeUtils.import("resource:///modules/MailServices.jsm");
 ChromeUtils.import("resource://gre/modules/Services.jsm");
-ChromeUtils.import("resource://gre/modules/Task.jsm");
 ChromeUtils.import("resource://testing-common/mailnews/PromiseTestUtils.jsm");
 
 var gPluggableStores = [
   "@mozilla.org/msgstore/berkeleystore;1",
   "@mozilla.org/msgstore/maildirstore;1"
 ];
 
 var testSubjects = ["[Bug 397009] A filter will let me tag, but not untag",
--- a/mailnews/mime/jsmime/test/head_xpcshell_glue.js
+++ b/mailnews/mime/jsmime/test/head_xpcshell_glue.js
@@ -1,14 +1,13 @@
 // This file needs to contain glue to rephrase the Mocha testsuite framework in
 // a way that the xpcshell test suite can understand.
 
 ChromeUtils.import("resource://gre/modules/osfile.jsm");
 ChromeUtils.import("resource://gre/modules/Services.jsm");
-ChromeUtils.import("resource://gre/modules/Task.jsm");
 ChromeUtils.import("resource://testing-common/Assert.jsm");
 var requireCache = new Map();
 
 // Preload an assert module
 var assert = new Assert();
 assert.doesNotThrow = function (block, message) {
   message = (message ? ' ' + message : '.');
   try {
--- a/mailnews/test/resources/NetworkTestUtils.jsm
+++ b/mailnews/test/resources/NetworkTestUtils.jsm
@@ -9,17 +9,16 @@
 
 this.EXPORTED_SYMBOLS = ['NetworkTestUtils'];
 
 var CC = Components.Constructor;
 
 ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
 ChromeUtils.import("resource://gre/modules/Promise.jsm");
 ChromeUtils.import("resource://gre/modules/Services.jsm");
-ChromeUtils.import("resource://gre/modules/Task.jsm");
 ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
 ChromeUtils.import("resource:///modules/MailServices.jsm");
 
 const ServerSocket = CC("@mozilla.org/network/server-socket;1",
                         "nsIServerSocket",
                         "init");
 const BinaryInputStream = CC("@mozilla.org/binaryinputstream;1",
                              "nsIBinaryInputStream",