Location
src/sim/ant/ant-system.ts line 548
Description
antDepositFood declares:
const tryPoolFallback = true;
if (tryPoolFallback && remaining > 0) {
// entrance-pool fallback deposit path
tryPoolFallback is always true — the condition simplifies to if (remaining > 0). The variable was introduced as a version-gate placeholder when the pool fallback path was made unconditional (the comment above it references "Issue #68 (v12+) — pre-v12 this was an else branch"), but the boolean flag was never removed.
Impact
No runtime impact. The name tryPoolFallback implies a togglable gate, misleading any reader into thinking there is a path where the pool fallback is skipped. The dead constant also creates noise in the logical structure of the deposit function.
Fix
Remove const tryPoolFallback = true and replace if (tryPoolFallback && remaining > 0) with if (remaining > 0).
Severity
Low — cleanup / dead code. No behaviour change.
Location
src/sim/ant/ant-system.tsline 548Description
antDepositFooddeclares:tryPoolFallbackis alwaystrue— the condition simplifies toif (remaining > 0). The variable was introduced as a version-gate placeholder when the pool fallback path was made unconditional (the comment above it references "Issue #68 (v12+) — pre-v12 this was anelsebranch"), but the boolean flag was never removed.Impact
No runtime impact. The name
tryPoolFallbackimplies a togglable gate, misleading any reader into thinking there is a path where the pool fallback is skipped. The dead constant also creates noise in the logical structure of the deposit function.Fix
Remove
const tryPoolFallback = trueand replaceif (tryPoolFallback && remaining > 0)withif (remaining > 0).Severity
Low — cleanup / dead code. No behaviour change.