From 987993e96af6e07174ba8003bb205394f4d1d3e0 Mon Sep 17 00:00:00 2001 From: papush Date: Sun, 29 Aug 2021 14:46:54 +0200 Subject: remove unused RedirectorOverlay methods --- chrome/js/browserOverlay.js | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'chrome/js/browserOverlay.js') diff --git a/chrome/js/browserOverlay.js b/chrome/js/browserOverlay.js index d833ccf..1d3efab 100644 --- a/chrome/js/browserOverlay.js +++ b/chrome/js/browserOverlay.js @@ -42,27 +42,6 @@ var RedirectorOverlay = { this.refreshUI(); }, - showContextMenu : function(event) { - if (gContextMenu.onLink) { - document.getElementById("redirector-context").label = this.strings.getString('addLinkUrl'); - } else { - document.getElementById("redirector-context").label = this.strings.getString('addCurrentUrl'); - } - }, - - onContextMenuCommand: function(event) { - var redirect = new Redirect(window.content.location.href, window.content.location.href); - if (gContextMenu.onLink) { - redirect.redirectUrl = gContextMenu.link.toString(); - } - - gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); - }, - - onMenuItemCommand: function(event) { - this.openSettings(); - }, - refreshUI: function() { let button = document.getElementById("redirector-button"); let item = document.getElementById("redirector-enabled-item"); @@ -84,17 +63,6 @@ var RedirectorOverlay = { gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); }, - statusBarClick : function(event) { - Redirector.debug('REDIRECTOR: click'); - var LEFT = 0, RIGHT = 2; - - if (event.button == LEFT) { - RedirectorOverlay.toggleEnabled(); - } else if (event.button == RIGHT) { - this.openSettings(); - } - }, - updateTooltip: function(event) { AddonManager.getAddonByID("url-rewriter@papush", (addon) => { let label = event.target.getElementsByClassName("redirector-tooltip-version")[0]; -- cgit v1.2.3-70-g09d2