[DEAD-3] Dead functions & cruft: unused admin APIs, test-only entry points, unreferenced fixtures, debug leftovers #42
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
Dead public functions:
ClientCredentials.recreate_client/suspend_client/reactivate_client/list_clients(suspend being dead is itself finding H-2);NationalIDClient.renewal/2,3;Renewal.process/2(production-dead, test-only);CertificateValidity.resolve/1; data-storewrap_with/3andexec(:reset)never called anywhere; Issuerfind/deletenever called. Cruft: 6 unreferenced PEM fixtures shipped into the image;verify-issuer.sh(halts the prod node!); README pointing at deprecated start-docker.sh; 26IO.inspectin tests; tests writingcerts/into the repo cwd; stale trackedmdid-root-ca.pem/mdid-sub-ca.pem; script numbering gap (03/05);@enforce_keys []in clc_data.ex;:invalid_client2atom; commented-out scaffold blocks; dead:mnesia_dirtest config.Evidence
client_credentials.ex:37-127;national_id_client.ex:96-117;renewal.ex:32-52; grep-verified zero call sites for eachImpact
~300+ lines of confusion; dead admin functions create false confidence (H-2); debug noise pollutes precommit output.
Fix
Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).Verified fixed on main (
1b6216b): dead functions, fixtures, debug leftovers removed; suspend_client is now wired to the admin endpoint (B5).