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:
@@ -48,7 +48,6 @@ Singleton {
|
||||
// windowsChanged is auto-generated by the `windows` property's change signal.
|
||||
signal stateChanged
|
||||
|
||||
// ── State sockets ──────────────────────────────────────────────────────
|
||||
// One connection per watch target; mango streams a fresh full snapshot on
|
||||
// every change, so each line is treated as the complete state.
|
||||
|
||||
@@ -272,8 +271,6 @@ Singleton {
|
||||
root.windows = data.clients;
|
||||
}
|
||||
|
||||
// ── Tag API (dwl-style tag model) ──────────────────────────────────────
|
||||
|
||||
function getOutputState(outputName) {
|
||||
return (outputs && outputs[outputName]) ? outputs[outputName] : null;
|
||||
}
|
||||
@@ -296,20 +293,6 @@ Singleton {
|
||||
return at.length === 0 || at.every(t => t === 0);
|
||||
}
|
||||
|
||||
function getTagsWithClients(outputName) {
|
||||
const output = getOutputState(outputName);
|
||||
if (!output || !output.tags)
|
||||
return [];
|
||||
return output.tags.filter(tag => tag.clients > 0).map(tag => tag.tag);
|
||||
}
|
||||
|
||||
function getUrgentTags(outputName) {
|
||||
const output = getOutputState(outputName);
|
||||
if (!output || !output.tags)
|
||||
return [];
|
||||
return output.tags.filter(tag => tag.state === 2).map(tag => tag.tag);
|
||||
}
|
||||
|
||||
function getVisibleTags(outputName) {
|
||||
const output = getOutputState(outputName);
|
||||
if (!output || !output.tags)
|
||||
@@ -328,7 +311,6 @@ Singleton {
|
||||
return displayScales[outputName];
|
||||
}
|
||||
|
||||
// ── Window list ↔ wlr toplevel matching (per-tag sort/filter) ──────────
|
||||
// Match mango clients to wlr foreign-toplevels by appId+title to enrich them
|
||||
// with owning tags/monitor for per-tag filtering and stable ordering.
|
||||
|
||||
@@ -452,8 +434,6 @@ Singleton {
|
||||
return _matchAndEnrich(toplevels, clients);
|
||||
}
|
||||
|
||||
// ── Commands (mango verb IPC: dispatch <func>,<args> over the socket) ──
|
||||
|
||||
function suppressWatchedConfigReloads(ms) {
|
||||
root._ignoreWatchedReloadUntil = Math.max(root._ignoreWatchedReloadUntil, Date.now() + (ms || 1500));
|
||||
}
|
||||
@@ -539,8 +519,6 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// ── Config generation (mango config fragments under ~/.config/mango/dms) ─
|
||||
|
||||
Connections {
|
||||
target: SettingsData
|
||||
function onBarConfigsChanged() {
|
||||
|
||||
Reference in New Issue
Block a user