Bug 1257128 (part 4) - Remove unused nsIAtomService references in toolkit/. r=froydnj.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 16 Mar 2016 21:11:10 +1100
changeset 290244 d1ae745b7e3fcb2dbeea4814fa4f907160b1d0e9
parent 290243 59fe9a7b94c7e4ced362db3fc46295dec48760a8
child 290245 0662b0935257f604567b816af81c369674786190
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1257128
milestone48.0a1
Bug 1257128 (part 4) - Remove unused nsIAtomService references in toolkit/. r=froydnj.
toolkit/components/autocomplete/nsAutoCompleteController.cpp
toolkit/components/viewconfig/content/config.js
toolkit/content/widgets/browser.xml
--- a/toolkit/components/autocomplete/nsAutoCompleteController.cpp
+++ b/toolkit/components/autocomplete/nsAutoCompleteController.cpp
@@ -6,17 +6,16 @@
 #include "nsAutoCompleteController.h"
 #include "nsAutoCompleteSimpleResult.h"
 
 #include "nsAutoPtr.h"
 #include "nsNetCID.h"
 #include "nsIIOService.h"
 #include "nsToolkitCompsCID.h"
 #include "nsIServiceManager.h"
-#include "nsIAtomService.h"
 #include "nsReadableUtils.h"
 #include "nsUnicharUtils.h"
 #include "nsITreeBoxObject.h"
 #include "nsITreeColumns.h"
 #include "nsIObserverService.h"
 #include "nsIDOMKeyEvent.h"
 #include "mozilla/Services.h"
 #include "mozilla/ModuleUtils.h"
--- a/toolkit/components/viewconfig/content/config.js
+++ b/toolkit/components/viewconfig/content/config.js
@@ -5,27 +5,25 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 Components.utils.import("resource://gre/modules/Services.jsm");
 
 const nsIPrefLocalizedString = Components.interfaces.nsIPrefLocalizedString;
 const nsISupportsString = Components.interfaces.nsISupportsString;
 const nsIPrefBranch = Components.interfaces.nsIPrefBranch;
 const nsIClipboardHelper = Components.interfaces.nsIClipboardHelper;
-const nsIAtomService = Components.interfaces.nsIAtomService;
 
 const nsSupportsString_CONTRACTID = "@mozilla.org/supports-string;1";
 const nsPrompt_CONTRACTID = "@mozilla.org/embedcomp/prompt-service;1";
 const nsPrefService_CONTRACTID = "@mozilla.org/preferences-service;1";
 const nsClipboardHelper_CONTRACTID = "@mozilla.org/widget/clipboardhelper;1";
 const nsAtomService_CONTRACTID = "@mozilla.org/atom-service;1";
 
 const gPrefBranch = Services.prefs;
 const gClipboardHelper = Components.classes[nsClipboardHelper_CONTRACTID].getService(nsIClipboardHelper);
-const gAtomService = Components.classes[nsAtomService_CONTRACTID].getService(nsIAtomService);
 
 var gLockProps = ["default", "user", "locked"];
 // we get these from a string bundle
 var gLockStrs = [];
 var gTypeStrs = [];
 
 const PREF_IS_DEFAULT_VALUE = 0;
 const PREF_IS_USER_SET = 1;
--- a/toolkit/content/widgets/browser.xml
+++ b/toolkit/content/widgets/browser.xml
@@ -536,21 +536,16 @@
         ]]></getter>
       </property>
 
       <field name="mPrefs" readonly="true">
         Components.classes['@mozilla.org/preferences-service;1']
                   .getService(Components.interfaces.nsIPrefBranch);
       </field>
 
-      <field name="mAtomService" readonly="true">
-        Components.classes['@mozilla.org/atom-service;1']
-                  .getService(Components.interfaces.nsIAtomService);
-      </field>
-
       <field name="_mStrBundle">null</field>
 
       <property name="mStrBundle">
         <getter>
         <![CDATA[
           if (!this._mStrBundle) {
             // need to create string bundle manually instead of using <xul:stringbundle/>
             // see bug 63370 for details