Bug 785415 - Remove unused getInnerWindowById from WebConsoleUtils.jsm. r=mihai.sucan
authorAbhishek Potnis <abhishekp.bugzilla@gmail.com>
Sat, 25 Aug 2012 19:26:00 -0400
changeset 105532 a5d691072fd6192d4197d67c065bae3b2455e299
parent 105531 0eece65be2df5d1538f9f6624e7fc9edb7dd4020
child 105533 260d65801b2255ff61a02af2dd06137d27617c86
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersmihai
bugs785415
milestone17.0a1
Bug 785415 - Remove unused getInnerWindowById from WebConsoleUtils.jsm. r=mihai.sucan
browser/devtools/webconsole/WebConsoleUtils.jsm
--- a/browser/devtools/webconsole/WebConsoleUtils.jsm
+++ b/browser/devtools/webconsole/WebConsoleUtils.jsm
@@ -157,41 +157,16 @@ var WebConsoleUtils = {
                                    getInterface(Ci.nsIDOMWindowUtils);
       content = windowUtils.getOuterWindowWithId(aOuterId);
     }
 
     return content;
   },
 
   /**
-   * Gets the window that has the given inner ID.
-   *
-   * @param integer aInnerId
-   * @param nsIDOMWindow [aHintWindow]
-   *        Optional, the window object used to QueryInterface to
-   *        nsIDOMWindowUtils. If this is not given,
-   *        Services.wm.getMostRecentWindow() is used.
-   * @return nsIDOMWindow|null
-   *         The window object with the given inner ID.
-   */
-  getWindowByInnerId: function WCU_getWindowByInnerId(aInnerId, aHintWindow)
-  {
-    let someWindow = aHintWindow || Services.wm.getMostRecentWindow(null);
-    let content = null;
-
-    if (someWindow) {
-      let windowUtils = someWindow.QueryInterface(Ci.nsIInterfaceRequestor).
-                                   getInterface(Ci.nsIDOMWindowUtils);
-      content = windowUtils.getInnerWindowWithId(aInnerId);
-    }
-
-    return content;
-  },
-
-  /**
    * Abbreviates the given source URL so that it can be displayed flush-right
    * without being too distracting.
    *
    * @param string aSourceURL
    *        The source URL to shorten.
    * @return string
    *         The abbreviated form of the source URL.
    */