1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -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
-56
View File
@@ -354,28 +354,6 @@ Singleton {
return "Very Poor";
}
function getSignalIcon(device) {
if (!device || device.signalStrength === undefined || device.signalStrength <= 0) {
return "signal_cellular_null";
}
const signal = device.signalStrength;
if (signal >= 80) {
return "signal_cellular_4_bar";
}
if (signal >= 60) {
return "signal_cellular_3_bar";
}
if (signal >= 40) {
return "signal_cellular_2_bar";
}
if (signal >= 20) {
return "signal_cellular_1_bar";
}
return "signal_cellular_0_bar";
}
function isDeviceBusy(device) {
if (!device) {
return false;
@@ -622,40 +600,6 @@ Singleton {
});
}
function getCurrentCodec(device, callback) {
if (!device || !device.connected || !isAudioDevice(device)) {
callback("");
return;
}
whenCodecBackendReady(() => {
if (root.wpexecAvailable) {
root.queryCardProfiles(device, (codecs, current) => {
if (current) {
callback(current);
return;
}
if (!root.dbusBridgeAvailable) {
callback("");
return;
}
root.queryBluezCodecState(device, (bluezCodecs, bluezCurrent) => {
callback(bluezCurrent || "");
});
});
return;
}
if (!root.dbusBridgeAvailable) {
callback("");
return;
}
root.queryBluezCodecState(device, (codecs, current) => {
callback(current || "");
});
});
}
function getAvailableCodecs(device, callback) {
if (!device || !device.connected || !isAudioDevice(device)) {
callback([], "");