Cleanup: Delete dead source files that are not in the build
@mpogue2 is already working on this.
Since Sep 15, 2026.
Assessment
This issue has not been assessed yet.
Description
🤖 Generated with Claude Code
While auditing license headers for #1734, I cross-referenced every tracked source file against sources.pri / test123.pro and against actual #include usage. Ten files are neither listed in the build nor included by any compiled file — they are dead code.
Tellingly, these are almost exactly the files that had the worst header rot in #1734 (the two copyright ranges stuck at 2016-2024, the CRLF line endings, the commented-out header), which is consistent with them having been abandoned years ago and missed by every subsequent sweep.
The files
| File | Evidence it is dead |
|---|---|
analogclock.cpp / .h |
The #include "analogclock.h" in mainwindow.h is commented out; AnalogClock is referenced nowhere. Neither file appears in any build file. |
bass_audio.cpp / .h |
Not in SOURCES; the header is included only by its own dead .cpp. |
danceprogramsmodel.cpp / .h |
Not in SOURCES; same self-referential pair. |
renderarea.cpp / .h |
Not in SOURCES; the #include "renderarea.h" in mainwindow.h is commented out, and RenderArea is used nowhere outside the pair. |
myproxystyle.h |
Included by nothing, not in HEADERS. |
AppleMusicLibraryXMLReader.cpp |
Not in SOURCES, included by nothing. |
Proposed cleanup
- Delete all of the above.
- Remove the two commented-out includes (
analogclock.h,renderarea.h) left behind inmainwindow.h. - Drop the stale
// TODO: all the other stuff from AnalogClock::redrawTimerExpired()inmainwindow.cpp, which points at a deleted function. - Reword the note atop
flexible_audio.cpptelling the reader to "use contents ofbass_audio.cpp" on non-M1 Macs.
Since none of this is compiled, the build should be unaffected — but it wants its own build-and-test cycle rather than riding along on a copyright change, which is why it is filed separately.
Worth a decision
bass_audio.* is the old BASS audio backend, superseded by the JUCE/flexible_audio path. renderarea.* looks like early SD formation-rendering work that squaredancerscene replaced. Both are recoverable from git history if ever needed.
- Dominant language
- C++
- Stars
- 14
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mpogue2/SquareDesk
-
enhancement Ready for final check
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
mpogue2/SquareDesk#1818 · 1 comment ·
-
bug Ready for final check
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mpogue2/SquareDesk#1758 · 1 comment ·
-
bug Linux only
Difficulty 1/5 Under an hour Newbie friendliness 75/100
mpogue2/SquareDesk#204 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mpogue2/SquareDesk#172 · 4 comments ·
-
Feature: Prep for v1.3.0 releasePossibly taken @mpogue2 claimed this 1 day ago. Openenhancement Ready for final check
mpogue2/SquareDesk#1820 · 1 assignee ·
All issues in mpogue2/SquareDesk
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
objectionary/game-of-life#74 ·
-
bug fmt low priority
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
qbittorrent/qBittorrent#25176 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
lxqt/lxqt-powermanagement#500 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
scp-fs2open/fs2open.github.com#7965 ·
Maintainers usually reply within 1 day