Two small dead-code items found during a deep pass on dashboard.js state management:
ticketViewMode localStorage key is write-only.setViewMode() (~line 1218) writes localStorage['ticketViewMode'], but nothing anywhere reads that key back — the actual table/kanban view-mode restoration on page load (~lines 1365-1372) reads a completely different key, lt_activeTab_<path>, written by lt.tabs in base.js:286. Not a functional bug (the real state persists correctly via the other mechanism) but confusing dead code that looks load-bearing and isn't.
The local sortTable(table, column) function (~lines 384-449, ~65 lines) has zero callers. Table sorting is actually wired via initTableSorting() → lt.sortTable.init() in base.js.
Fix: Delete both — the unused ticketViewMode write and the dead sortTable() function — to reduce confusion for future maintainers.
**Severity:** Low (cleanup)
Two small dead-code items found during a deep pass on dashboard.js state management:
1. **`ticketViewMode` localStorage key is write-only.** `setViewMode()` (~line 1218) writes `localStorage['ticketViewMode']`, but nothing anywhere reads that key back — the actual table/kanban view-mode restoration on page load (~lines 1365-1372) reads a completely different key, `lt_activeTab_<path>`, written by `lt.tabs` in `base.js:286`. Not a functional bug (the real state persists correctly via the other mechanism) but confusing dead code that looks load-bearing and isn't.
2. **The local `sortTable(table, column)` function (~lines 384-449, ~65 lines) has zero callers.** Table sorting is actually wired via `initTableSorting()` → `lt.sortTable.init()` in base.js.
**Fix:** Delete both — the unused `ticketViewMode` write and the dead `sortTable()` function — to reduce confusion for future maintainers.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Severity: Low (cleanup)
Two small dead-code items found during a deep pass on dashboard.js state management:
ticketViewModelocalStorage key is write-only.setViewMode()(~line 1218) writeslocalStorage['ticketViewMode'], but nothing anywhere reads that key back — the actual table/kanban view-mode restoration on page load (~lines 1365-1372) reads a completely different key,lt_activeTab_<path>, written bylt.tabsinbase.js:286. Not a functional bug (the real state persists correctly via the other mechanism) but confusing dead code that looks load-bearing and isn't.sortTable(table, column)function (~lines 384-449, ~65 lines) has zero callers. Table sorting is actually wired viainitTableSorting()→lt.sortTable.init()in base.js.Fix: Delete both — the unused
ticketViewModewrite and the deadsortTable()function — to reduce confusion for future maintainers.