Background
PR #3131 (@K5PTB's SmartCAT server) replaced the old CAT server hierarchy with a unified CatPort + SmartCatProtocol + SmartCatSession design.
The legacy files were unwired but not deleted:
| File |
CMake |
External includes |
src/core/RigctlServer.cpp |
dropped in #3131 |
none (verified via grep) |
src/core/RigctlServer.h |
n/a |
none |
src/core/RigctlPty.cpp |
still listed in CMakeLists.txt:458 |
none |
src/core/RigctlPty.h |
n/a |
none |
RigctlPty.cpp builds but its symbols have no users — pure dead weight in the link.
Verification done
$ grep -rn 'RigctlServer\|RigctlPty' src/ tests/ | grep -v 'RigctlServer\.\|RigctlPty\.'
# only historical comments remain (SmartLinkClient, WanConnection, RadioConnection,
# DxClusterClient, RigctlProtocol, CatPort) — no live code references
$ grep -rn '#include.*\(RigctlServer\|RigctlPty\)' src/ tests/ | grep -v 'RigctlServer\.\|RigctlPty\.'
# zero hits
The change
git rm src/core/RigctlServer.cpp src/core/RigctlServer.h
git rm src/core/RigctlPty.cpp src/core/RigctlPty.h
- Remove
src/core/RigctlPty.cpp from the CORE_SOURCES list in CMakeLists.txt:458
- Optionally: sweep the remaining comment-only references (mostly GHSA citations) to update wording from "RigctlServer" → "CatPort" where the citation is about the architectural pattern, not the historical bug. Leave GHSA references intact since they cite the original incident.
Acceptance
Why now
PR #3131 acknowledged the cleanup as a follow-up. Splitting it out keeps that PR's diff focused on the new functionality.
73, Jeremy KK7GWY & Claude (AI dev partner)
Background
PR #3131 (@K5PTB's SmartCAT server) replaced the old CAT server hierarchy with a unified
CatPort+SmartCatProtocol+SmartCatSessiondesign.The legacy files were unwired but not deleted:
src/core/RigctlServer.cppsrc/core/RigctlServer.hsrc/core/RigctlPty.cppCMakeLists.txt:458src/core/RigctlPty.hRigctlPty.cppbuilds but its symbols have no users — pure dead weight in the link.Verification done
The change
git rm src/core/RigctlServer.cpp src/core/RigctlServer.hgit rm src/core/RigctlPty.cpp src/core/RigctlPty.hsrc/core/RigctlPty.cppfrom theCORE_SOURCESlist inCMakeLists.txt:458Acceptance
CMakeLists.txt:458line gonecmake --buildsucceeds with--target all(catches any test target that referenced the orphans)Why now
PR #3131 acknowledged the cleanup as a follow-up. Splitting it out keeps that PR's diff focused on the new functionality.
73, Jeremy KK7GWY & Claude (AI dev partner)