The _isActivePlayer() function is defined but never used anywhere in the contract. This adds unnecessary bytecode to the contract, increasing deployment costs. Additionally, the function has a linear O(n) complexity which would be inefficient if it were used.
Likelihood:
Deployment gas cost is slightly higher due to unused bytecode.
No security impact (function is internal and not called).
Removing it will reduce contract size and save deployment gas.
Impact:
Increased deployment gas costs due to unused bytecode. No functional impact since the function is never called
This PoC demonstrates that the function is never called, so it has no functional impact but increases contract size and deployment gas.
Remove the unused function to save gas and reduce contract size:
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.