Skip to content

Commit

Permalink
refactor: remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Feb 12, 2025
1 parent ddada1e commit a7eceab
Show file tree
Hide file tree
Showing 179 changed files with 400 additions and 10,660 deletions.
8 changes: 1 addition & 7 deletions addon/chrome/content/click/click.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,6 @@ var TabmixContext = {
Tabmix.showItem("context_unpinTab", !multiselectionContext && show && aTab.pinned);
Tabmix.showItem("context_pinSelectedTabs", multiselectionContext && show && !aTab.pinned);
Tabmix.showItem("context_unpinSelectedTabs", multiselectionContext && show && aTab.pinned);
setTimeout(() => {
// we need to set our show/hide after tabGroups extension
let tabViewMenu = document.getElementById("context_tabViewMenu") ||
document.getElementById("tabGroups-context_tabViewMenu");
Tabmix.showItem(tabViewMenu, Tabmix.prefs.getBoolPref("moveToGroup") && !aTab.pinned);
});
Tabmix.showItem("context_moveTabOptions", Tabmix.prefs.getBoolPref("moveTabOptions"));

// make sure not to show menu items that are hidden by Firefox
Expand Down Expand Up @@ -1267,7 +1261,7 @@ var TabmixAllTabs = {
if (typeof window.colorfulTabs == "object") {
let rule = "none";
if (window.colorfulTabs.clrAllTabsPopPref) {
let tabClr = TabmixSessionData.getTabValue(tab, "tabClr");
let tabClr = SessionStore.getCustomTabValue(tab, "tabClr");
if (tabClr)
rule = "linear-gradient(rgba(255,255,255,.7),rgba(#1,.5),rgb(#1)),linear-gradient(rgb(#1),rgb(#1))"
.replace(/#1/g, tabClr);
Expand Down
8 changes: 0 additions & 8 deletions addon/chrome/content/click/listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@
const mainCommandSet = document.getElementById("mainCommandSet");
mainCommandSet?.addEventListener("command", (/** @type {PopupEvent} */ event) => {
switch (event.target.id) {
case "TabmixSessionUtils:SaveThisWindow":
TabmixSessionManager.sessionUtil("save", "thiswindow");
event.stopPropagation();
break;
case "TabmixSessionUtils:SaveAllWindow":
TabmixSessionManager.sessionUtil("save", "allwindows");
event.stopPropagation();
break;
case "History:UndoCloseTab":
event.stopPropagation();
undoCloseTab();
Expand Down
285 changes: 0 additions & 285 deletions addon/chrome/content/dialogs/promptservice.js

This file was deleted.

46 changes: 0 additions & 46 deletions addon/chrome/content/dialogs/promptservice.xhtml

This file was deleted.

Loading

0 comments on commit a7eceab

Please sign in to comment.