Bug 1234131 - Remove unused method, deleted the method getNativeWindow(). r=skaspari
authorkartikey0303 <kartikey04.05@gmail.com>
Sat, 26 Dec 2015 17:38:37 +0530
changeset 319134 2fed3a17154e500d7d62f6bdf584932478a68cb2
parent 319133 695b6cd72017f040d4d9da5ddd2a96c70916320c
child 319135 dc0ca8d57b1749b7b85ec779f87fd5dc57c45a59
push id8984
push userahunt@mozilla.com
push dateTue, 05 Jan 2016 23:06:12 +0000
reviewersskaspari
bugs1234131
milestone46.0a1
Bug 1234131 - Remove unused method, deleted the method getNativeWindow(). r=skaspari
mobile/android/components/HelperAppDialog.js
--- a/mobile/android/components/HelperAppDialog.js
+++ b/mobile/android/components/HelperAppDialog.js
@@ -32,27 +32,16 @@ XPCOMUtils.defineLazyGetter(this, "Conte
 });
 
 function HelperAppLauncherDialog() { }
 
 HelperAppLauncherDialog.prototype = {
   classID: Components.ID("{e9d277a0-268a-4ec2-bb8c-10fdf3e44611}"),
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIHelperAppLauncherDialog]),
 
-  getNativeWindow: function () {
-    try {
-      let win = Services.wm.getMostRecentWindow("navigator:browser");
-      if (win && win.NativeWindow) {
-        return win.NativeWindow;
-      }
-    } catch (e) {
-    }
-    return null;
-  },
-
   /**
    * Returns false if `url` represents a local or special URL that we don't
    * wish to ever download.
    *
    * Returns true otherwise.
    */
   _canDownload: function (url, alreadyResolved=false) {
     // The common case.