cleanup(core): delete orphan RigctlServer and RigctlPty files#3380
Conversation
…sdr#3142) PR aethersdr#3131 replaced the old CAT server hierarchy with CatPort + SmartCatProtocol + SmartCatSession. The legacy files were unwired but not deleted: - src/core/RigctlServer.cpp / .h (no CMake entry, no includes) - src/core/RigctlPty.cpp / .h (still listed in CMakeLists.txt:458) Remove all four files and drop RigctlPty.cpp from CORE_SOURCES. GHSA comment-only references retained; live-code grep confirms zero users remain. Closes aethersdr#3142 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Clean surgical deletion — verified against the live tree:
- No
#include "RigctlServer.h"/#include "RigctlPty.h"from any live source. - No
new RigctlServer(...)/new RigctlPty(...)instantiations or other symbol references. CMakeLists.txthad exactly one remaining build entry (src/core/RigctlPty.cppat line 525) — correctly removed.RigctlServer.cppwas already absent fromCORE_SOURCES, consistent with the "unwired by #3131 but not deleted" framing.- Surviving textual references (CatPort.h/.cpp, RadioConnection.cpp, WanConnection.cpp, SmartLinkClient.cpp, DxClusterClient.cpp, RigctlProtocol.cpp, MainWindow.cpp, CHANGELOG, ROADMAP) are all narrative comments citing GHSA-7w4w-wfqm-wh93 / GHSA-qxhr-cwrc-pvrm — preserving these is the right call; they document the rationale for the hardening that CatPort now carries.
Out-of-scope check: none. Five files, all directly tied to the dead-code removal.
Thanks for picking up the #3142 loose end, @K5PTB — nice clean follow-up to the #3131 consolidation.
🤖 aethersdr-agent · cost: $16.3737 · model: claude-opus-4-7
jensenpat
left a comment
There was a problem hiding this comment.
Reviewed: verified all four files are genuinely orphaned. RigctlServer.cpp was not in the build at all; RigctlPty.cpp was the last build reference and is correctly dropped from CORE_SOURCES. No live #include of either header remains anywhere in src/ — only GHSA/comment citations, which are intentionally retained. The still-used RigctlProtocol.cpp (consumed by CatPort) stays. CI green across build/macOS/Windows/CodeQL. Clean dead-code removal. LGTM.
…sdr#3380) ## Summary - Removes `src/core/RigctlServer.cpp/.h` and `src/core/RigctlPty.cpp/.h` — all four were unwired by PR aethersdr#3131 but not deleted - Drops `src/core/RigctlPty.cpp` from `CORE_SOURCES` in `CMakeLists.txt` (the only remaining build reference) - Live-code grep confirms zero includes or symbol references remain; GHSA comment citations retained as-is ## Test plan - [x] `cmake --build` clean with `--target all` (RelWithDebInfo, macOS M2) - [x] Smoke test: AetherSDR launches, rigctld CAT control functional via CatPort Closes aethersdr#3142 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
src/core/RigctlServer.cpp/.handsrc/core/RigctlPty.cpp/.h— all four were unwired by PR feat(smartcat): SmartCAT TCP server — TS-2000 and FlexCAT dialects #3131 but not deletedsrc/core/RigctlPty.cppfromCORE_SOURCESinCMakeLists.txt(the only remaining build reference)Test plan
cmake --buildclean with--target all(RelWithDebInfo, macOS M2)Closes #3142
🤖 Generated with Claude Code