M007: getSuggestedTurn() is dead code — defined in engine but never imported or called #7
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
bug
feature-request
in-progress
milestone
ops-task
quickfix
security/high
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/chainbound#7
Loading…
Add table
Add a link
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?
Severity: LOW
File: src/engine/openings.ts:131-151
Problem
getSuggestedTurn()correctly handles contingency branch selection (reads frombranch.branchTurns[branchTurnIndex]whenactiveBranchIndex !== null), but it is never imported or called anywhere. OpeningSuggestion.tsx duplicates this logic inline and does it wrong (ignores branches).Fix
Export
getSuggestedTurn()from engine/openings.ts and use it in OpeningSuggestion.tsx to determine the current suggested turn. This fixes the contingency branch bug (issue #4) and eliminates dead code.Unblocking — lint gate now passes clean (
47dfc01).