fix: remove commented-out dead code blocks (#31) #48
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#48
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/major-domo-database-31"
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
Removes large blocks of commented-out dead code across 5 files. Git history preserves the removed code.
Files changed
app/main.py: Removed duplicate commented imports (lines 10-11), commentedlogging.basicConfigblock (lines 15-21), and commented root endpoint (lines 87-89)app/dependencies.py: Removed commenteddate/log_level/logging.basicConfigblock (lines 17-23)app/db_engine.py: Removed triple-quoted comment block and emptyWEEK_NUMSdict (lines 45-58), and commented two-playoff-teams logic insort_division(lines 210-223)app/routers_v3/battingstats.py: Removed commented career stats endpoint (lines 284-287)app/routers_v3/decisions.py: Removed three commentedif team_idblocks (lines 68-77 + one additional block below the active code)Test results
No test suite — changes verified by reading back modified files. All removals are purely cosmetic dead code with no functional impact.
Other observations
The auto-formatter (ruff/black) reformatted touched files on save — quote styles and import formatting changed. This is expected project behavior from the configured linter hook.
AI Code Review
Files Reviewed
app/main.py(modified)app/dependencies.py(modified)app/db_engine.py(modified)app/routers_v3/battingstats.py(modified)app/routers_v3/decisions.py(modified)Findings
Correctness
logging.basicConfigblocks, an emptyWEEK_NUMSdict, an obsolete "two-playoff-teams" algorithm block insort_division, and staleif team_idvariants indecisions.py.app/db_engine.pyremoves the sameWEEK_NUMS = {'regular': {}}block that PR #46 (currently open/pending) also removes. Whichever merges second will need a rebase. Not a blocker for this PR, but worth noting.Security
Style & Conventions
db_engine.py), making the diff larger than the logical change. This is acceptable given it's the configured project formatter.Suggestions
Verdict: COMMENT
Dead-code removals are correct and safe. Auto-formatter changes are cosmetic and project-expected. The only thing to watch is a likely rebase needed when merging alongside PR #46 due to overlapping
WEEK_NUMSremoval indb_engine.py.Automated review by Claude PR Reviewer
Checkout
From your project repository, check out a new branch and test the changes.