1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 20:48:29 -04:00

qs: large sweep of dead code removals

This commit is contained in:
bbedward
2026-07-26 23:22:22 -04:00
parent bab2078dfd
commit c67b185076
113 changed files with 1467 additions and 3254 deletions
-58
View File
@@ -791,23 +791,6 @@ Singleton {
return null;
}
function getAllPluginItems() {
if (typeof PluginService === "undefined") {
return [];
}
let allItems = [];
const launchers = PluginService.getLauncherPlugins();
for (const pluginId in launchers) {
const categoryName = launchers[pluginId].name || pluginId;
const items = getPluginItems(categoryName, "");
allItems = allItems.concat(items);
}
return allItems;
}
function getPluginItems(category, query) {
if (typeof PluginService === "undefined")
return [];
@@ -915,21 +898,6 @@ Singleton {
return false;
}
function getPluginPasteText(pluginId, item) {
if (typeof PluginService === "undefined")
return null;
const instance = PluginService.pluginInstances[pluginId];
if (!instance)
return null;
if (typeof instance.getPasteText === "function") {
return instance.getPasteText(item);
}
return null;
}
function getPluginPasteArgs(pluginId, item) {
if (typeof PluginService === "undefined")
return null;
@@ -950,21 +918,6 @@ Singleton {
return null;
}
function searchPluginItems(query) {
if (typeof PluginService === "undefined")
return [];
let allItems = [];
const launchers = PluginService.getLauncherPlugins();
for (const pluginId in launchers) {
const items = getPluginItemsForPlugin(pluginId, query);
allItems = allItems.concat(items);
}
return allItems;
}
function getPluginLauncherCategories(pluginId) {
if (typeof PluginService === "undefined")
return [];
@@ -1001,15 +954,4 @@ Singleton {
log.warn("Error setting category on plugin", pluginId, ":", e);
}
}
function pluginHasCategories(pluginId) {
if (typeof PluginService === "undefined")
return false;
const instance = PluginService.pluginInstances[pluginId];
if (!instance)
return false;
return typeof instance.getCategories === "function";
}
}