@@ -470,20 +470,6 @@ async function nameGroupNow(groupId: number): Promise<void> {
470470 await naming.nameNow(groupId);
471471}
472472
473−async function newTabInGroup(): Promise<void> {
474− const active = await activeTab();
475− if (!active?.id) return;
476− const groupId = active.groupId ?? -1;
477− if (groupId === -1) {
478− await chrome.tabs.create({ windowId: active.windowId, index: active.index + 1 });
479− return;
480− }
481− const members = await chrome.tabs.query({ groupId });
482− const last = Math.max(...members.map((t) => t.index));
483− const tab = await chrome.tabs.create({ windowId: active.windowId, index: last + 1, openerTabId: active.id });
484− if (tab.id !== undefined) await addToGroup(rt, [tab.id], groupId);
485−}
486−
487473chrome.commands.onCommand.addListener((command) => {
488474 void (async () => {
489475 await ready;
@@ -496,8 +482,6 @@ chrome.commands.onCommand.addListener((command) => {
496482 if (t && (t.groupId ?? -1) !== -1) await nameGroupNow(t.groupId);
497483 } else if (command === "tidy-now") {
498484 await runSweep(rt, true);
499− } else if (command === "new-tab-in-group") {
500− await newTabInGroup();
501485 }
502486 } catch (e) {
503487 logError(`command ${command}`, e);