mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
remove unused functions/dead code
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user