bug 856479 remove dead code missed in addon manager work. r=markh
authorShane Caraveo <scaraveo@mozilla.com>
Wed, 10 Apr 2013 15:21:53 -0700
changeset 128507 881b429d35e9057b75f266ac89f35aa7eba39f0f
parent 128506 05730b9af97595a07e857bbf87182dd3280430b4
child 128508 9688317ad779f024e8b0eb436ffc2d6cc87a4bb4
push id26348
push usermixedpuppy@gmail.com
push dateThu, 11 Apr 2013 22:16:56 +0000
treeherdermozilla-inbound@881b429d35e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs856479
milestone23.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 856479 remove dead code missed in addon manager work. r=markh
browser/base/content/browser-social.js
--- a/browser/base/content/browser-social.js
+++ b/browser/base/content/browser-social.js
@@ -312,36 +312,16 @@ SocialUI = {
                                   .chromeEventHandler;
     let containerParent = container.parentNode;
     if (containerParent.classList.contains("social-panel") &&
         containerParent instanceof Ci.nsIDOMXULPopupElement) {
       containerParent.hidePopup();
     }
   },
 
-  disableWithConfirmation: function SocialUI_disableWithConfirmation() {
-    let brandShortName = document.getElementById("bundle_brand").getString("brandShortName");
-    let dialogTitle = gNavigatorBundle.getFormattedString("social.remove.confirmationOK",
-                                                          [Social.provider.name]);
-    let text = gNavigatorBundle.getFormattedString("social.remove.confirmationLabel",
-                                                   [Social.provider.name, brandShortName]);
-    let okButtonText = dialogTitle;
-
-    let ps = Services.prompt;
-    let flags = ps.BUTTON_TITLE_IS_STRING * ps.BUTTON_POS_0 +
-                ps.BUTTON_TITLE_CANCEL * ps.BUTTON_POS_1 +
-                ps.BUTTON_POS_0_DEFAULT;
-
-    let confirmationIndex = ps.confirmEx(null, dialogTitle, text, flags,
-                                         okButtonText, null, null, null, {});
-    if (confirmationIndex == 0) {
-      Social.deactivateFromOrigin(Social.provider.origin);
-    }
-  },
-
   get _chromeless() {
     // Is this a popup window that doesn't want chrome shown?
     let docElem = document.documentElement;
     let chromeless = docElem.getAttribute("chromehidden").indexOf("extrachrome") >= 0;
     // This property is "fixed" for a window, so avoid doing the check above
     // multiple times...
     delete this._chromeless;
     this._chromeless = chromeless;