Bug 1484496: Part 6 - Remove unused XPCOMUtils.IterSimpleEnumerator method. r=mccr8
authorKris Maglione <maglione.k@gmail.com>
Sat, 18 Aug 2018 18:45:57 -0700
changeset 488337 2bd127de1f05cd8379c279caea727690b847e5b9
parent 488336 7b496ebb5bbf0c42c3dd64a90022fbadd4005239
child 488338 59c38e3958fe43fa2c968f729e61f4c41815f47e
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1484496
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1484496: Part 6 - Remove unused XPCOMUtils.IterSimpleEnumerator method. r=mccr8 Differential Revision: https://phabricator.services.mozilla.com/D3734
js/xpconnect/loader/XPCOMUtils.jsm
--- a/js/xpconnect/loader/XPCOMUtils.jsm
+++ b/js/xpconnect/loader/XPCOMUtils.jsm
@@ -404,26 +404,16 @@ var XPCOMUtils = {
       Services.prefs.addObserver(aPreference, observer, true);
 
       defineGetter(lazyGetter);
       return lazyGetter();
     });
   },
 
   /**
-   * Helper which iterates over a nsISimpleEnumerator.
-   * @param e The nsISimpleEnumerator to iterate over.
-   * @param i The expected interface for each element.
-   */
-  IterSimpleEnumerator: function XPCU_IterSimpleEnumerator(e, i)
-  {
-    return e.entries(i);
-  },
-
-  /**
    * Helper which iterates over a string enumerator.
    * @param e The string enumerator (nsIUTF8StringEnumerator or
    *          nsIStringEnumerator) over which to iterate.
    */
   IterStringEnumerator: function* XPCU_IterStringEnumerator(e)
   {
     while (e.hasMore())
       yield e.getNext();