aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2017-11-25 09:51:37 +0000
committerStephen Blott2017-11-25 09:51:40 +0000
commit32b13ea15381b288917811181ec9df1b45e4271a (patch)
treef7e93a29a97030b29ddf7ed1b9b5be5bf4804dd1
parent16e147b976be187683ece3e28fbc8804c6b6d17c (diff)
downloadvimium-32b13ea15381b288917811181ec9df1b45e4271a.tar.bz2
Remove background-page Clipboard operations.
These are no longer needed following #2601. @mrmr1993... If these are ever needed again, then we can just revert this commit (and make them background commands again).
-rw-r--r--background_scripts/main.coffee4
-rw-r--r--manifest.json1
2 files changed, 0 insertions, 5 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 75b9dbd5..8220545d 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -221,8 +221,6 @@ BackgroundCommands =
startTabIndex = Math.max 0, Math.min activeTabIndex, tabs.length - count
chrome.tabs.remove (tab.id for tab in tabs[startTabIndex...startTabIndex + count])
restoreTab: mkRepeatCommand (request, callback) -> chrome.sessions.restore null, callback request
- openCopiedUrlInCurrentTab: (request) -> TabOperations.openUrlInCurrentTab extend request, url: Clipboard.paste()
- openCopiedUrlInNewTab: (request) -> @createTab extend request, url: Clipboard.paste()
togglePinTab: ({tab}) -> chrome.tabs.update tab.id, {pinned: !tab.pinned}
toggleMuteTab: toggleMuteTab
moveTabLeft: moveTab
@@ -438,8 +436,6 @@ sendRequestHandlers =
chrome.tabs.create url: chrome.runtime.getURL("pages/options.html"), index: request.tab.index + 1
frameFocused: handleFrameFocused
nextFrame: BackgroundCommands.nextFrame
- copyToClipboard: Clipboard.copy.bind Clipboard
- pasteFromClipboard: Clipboard.paste.bind Clipboard
selectSpecificTab: selectSpecificTab
createMark: Marks.create.bind(Marks)
gotoMark: Marks.goto.bind(Marks)
diff --git a/manifest.json b/manifest.json
index 7a8d8699..ee5b0655 100644
--- a/manifest.json
+++ b/manifest.json
@@ -13,7 +13,6 @@
"lib/settings.js",
"background_scripts/bg_utils.js",
"background_scripts/commands.js",
- "lib/clipboard.js",
"background_scripts/exclusions.js",
"background_scripts/completion_engines.js",
"background_scripts/completion_search.js",