Remove dead "daemon not yet ported" panic and four stale porting-era code comments #15
Reference in New Issue
Block a user
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?
Problem
The port is complete, but the code still reads as if it is half-finished.
Five places claim work is pending that has in fact been done.
1. Dead
panic("daemon not yet ported")daemonHandlersingame/tables.gopopulates all 13DaemonIDvalues(
DRollwand…DTurnSee), so this branch is unreachable. It is the onlypanic("not implemented")-shaped construct in the repo and it makes the portlook unfinished to any reader.
2. Four stale "arrives with a later phase" comments
game/daemons.go:5stomachis atdaemons.go:116game/misc.go:5callItis atmisc.go:563game/game.go:149NewcallsinitPlayer()atgame.go:194game/game.go:270quitcallsg.score(...)atgame.go:288Definition of done
invariant is genuinely guaranteed by the table's construction) or
kept with a corrected comment explaining it is a defensive invariant check,
not a porting placeholder. State which you chose and why in the PR.
keeping the
(file.c func_name)C-lineage breadcrumbs intact.or similar porting-era language remains anywhere in the tree — grep for it
and report what you found.
make checkfully green.TODO.mdupdated in the same commit.(closes #N).Implementation requirements
every
DaemonIDreally is populated — readtables.goand verify, do notassume. If any is not, that is a bug: stop and report it instead.
(file.c func_name)breadcrumbs; they aredeliberate and required by MEMORY.md.
maketargets only. Do NOT modify.golangci.yml.Note
This touches
.gofiles, so it goes through normal adversarial review — it isnot eligible for the docs-only fast path even though it changes only comments.