1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -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

@@ -333,13 +333,6 @@ Singleton {
return false
}
function getWorkspaceByIndex(index) {
if (index >= 0 && index < allWorkspaces.length) {
return allWorkspaces[index]
}
return null
}
function getCurrentOutputWorkspaceNumbers() {
return currentOutputWorkspaces.map(w => w.idx + 1) // niri uses 0-based, UI shows 1-based
}
@@ -350,17 +343,4 @@ Singleton {
}
return 1
}
function isWorkspaceActive(workspaceNumber) {
return workspaceNumber === getCurrentWorkspaceNumber()
}
// For compatibility with existing components
function getCurrentWorkspace() {
return getCurrentWorkspaceNumber()
}
function getWorkspaceList() {
return getCurrentOutputWorkspaceNumbers()
}
}