1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

remove unused functions/dead code

This commit is contained in:
bbedward
2025-07-27 20:23:11 -04:00
parent da70434eba
commit fae7f36a24
7 changed files with 21 additions and 210 deletions

View File

@@ -357,31 +357,6 @@ Singleton {
return (mem / (1024 * 1024)).toFixed(1) + " GB";
}
function formatMemory(mb) {
const mem = mb || 0;
if (mem >= 1024)
return (mem / 1024).toFixed(1) + " GB";
return mem.toFixed(0) + " MB";
}
function getCpuUsageColor() {
if (cpuUsage > 80) return "#e74c3c";
if (cpuUsage > 60) return "#f39c12";
return "#27ae60";
}
function getMemoryUsageColor() {
if (memoryUsage > 90) return "#e74c3c";
if (memoryUsage > 75) return "#f39c12";
return "#3498db";
}
function getTemperatureColor() {
if (cpuTemperature > 80) return "#e74c3c";
if (cpuTemperature > 65) return "#f39c12";
return "#27ae60";
}
Timer {
id: updateTimer
interval: root.updateInterval