From b378be51edfef567f84097cb7580a675315e506c Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Wed, 10 Apr 2013 15:21:53 -0700 Subject: [PATCH] bug 856479 remove dead code missed in addon manager work. r=markh --- browser/base/content/browser-social.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/browser/base/content/browser-social.js b/browser/base/content/browser-social.js index 4781dbf9eaa..dd58245715a 100644 --- a/browser/base/content/browser-social.js +++ b/browser/base/content/browser-social.js @@ -317,26 +317,6 @@ SocialUI = { } }, - 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;