From 972bf7a5e47f6f4abd9db5024914a87f0dad9084 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 21 Feb 2016 07:03:24 +0000 Subject: Remove selectionChangedHandlers. With #2006 and #2009, this is no longer being used. --- background_scripts/main.coffee | 6 ------ 1 file changed, 6 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 4bdb1475..196cf11f 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -30,8 +30,6 @@ root.urlForTab = {} # the string. namedKeyRegex = /^(<(?:[amc]-.|(?:[amc]-)?[a-z0-9]{2,5})>)(.*)$/ -# Event handlers -selectionChangedHandlers = [] # This is exported for use by "marks.coffee". root.tabLoadedHandlers = {} # tabId -> function() @@ -237,10 +235,6 @@ selectSpecificTab = (request) -> chrome.windows.update(tab.windowId, { focused: true }) chrome.tabs.update(request.id, { selected: true })) -chrome.tabs.onSelectionChanged.addListener (tabId, selectionInfo) -> - if (selectionChangedHandlers.length > 0) - selectionChangedHandlers.pop().call() - repeatFunction = (func, totalCount, currentCount, frameId) -> if (currentCount < totalCount) func( -- cgit v1.2.3