From f6cf37c90c876417e35335203c8a46652526135f Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 5 Nov 2015 18:19:47 +0900 Subject: [PATCH] Remove obsolete code for too old Firefox. SidebarUI is already available at Firefox 38. --- content/treestyletab/windowHelper.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 58cc0467..f6d71c17 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -333,7 +333,6 @@ var TreeStyleTabWindowHelper = { }, 'treeStyleTab'); } - if ('SidebarUI' in window) { // for Firefox 39 or later SidebarUI.__treestyletab__show = SidebarUI.show; SidebarUI.show = function(...aArgs) { var opened = this.isOpen; @@ -356,15 +355,6 @@ var TreeStyleTabWindowHelper = { gBrowser.treeStyleTab.updateFloatingTabbar(gBrowser.treeStyleTab.kTABBAR_UPDATE_BY_TOGGLE_SIDEBAR); return retVal; }; - } - else if ('toggleSidebar' in window) { // for Firefox 38 or older - TreeStyleTabUtils.doPatching(window.toggleSidebar, 'window.toggleSidebar', function(aName, aSource) { - return eval(aName+' = '+aSource.replace( - '{', - '{ gBrowser.treeStyleTab.updateFloatingTabbar(gBrowser.treeStyleTab.kTABBAR_UPDATE_BY_TOGGLE_SIDEBAR);' - )); - }, 'treeStyleTab'); - } }, _splitFunctionNames : function TSTWH__splitFunctionNames(aString) {