aboutsummaryrefslogtreecommitdiff
path: root/src/background/presenters
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/presenters')
-rw-r--r--src/background/presenters/tab.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/background/presenters/tab.js b/src/background/presenters/tab.js
index 6ad9736..bacb644 100644
--- a/src/background/presenters/tab.js
+++ b/src/background/presenters/tab.js
@@ -46,18 +46,6 @@ export default class TabPresenter {
return browser.tabs.update(tabId, { active: true });
}
- async selectAt(index) {
- let tabs = await browser.tabs.query({ currentWindow: true });
- if (tabs.length < 2) {
- return;
- }
- if (index < 0 || tabs.length <= index) {
- throw new RangeError(`tab ${index + 1} does not exist`);
- }
- let id = tabs[index].id;
- return browser.tabs.update(id, { active: true });
- }
-
remove(ids) {
return browser.tabs.remove(ids);
}