fix: remove debug print() statements from gameplay_models.py (#32) #63
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#63
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-discord-32"
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?
Summary
select_speed_testing()(lines 1318–1337) andselect_all_testing()(lines 1340–1344) — both were dead code containing 5print()calls that wrote directly to stdoutmain()and had no other callersFiles Changed
in_game/gameplay_models.py— removed two dead debug functionsOther observations
select_specic_fields()at line 1347 is also commented-out dead code (pre-existing, out of scope)Test Results
No test suite configured for this repo.
AI Code Review
Files Reviewed
in_game/gameplay_models.py(modified)Findings
Correctness
select_speed_testing()andselect_all_testing()have no live callers anywhere in the codebase — only commented-out references inmain()at lines 1357–1358. Deletions are safe.print()statements writing to stdout.Security
print(f'Game: {game_1}')leaking ORM object repr to stdout in production contexts).Style & Conventions
select_specic_fields()commented out at line 1347) correctly noted as out of scope.Suggestions
select_specic_fields()at ~line 1347 is also dead commented code and could be cleaned up in a follow-up PR.Verdict: APPROVED
Clean, minimal scope dead-code removal. Both functions confirmed to have no callers, PR description accurately describes the change.
Automated review by Claude PR Reviewer
8c11ae81bcto74b43ea369Closing — will re-implement fresh against
main. Original PR had unrebaseable conflicts from the scouting refactor.Pull request closed