-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible unused variables/functions in engine code (cppcheck report) #26780
Comments
The list should be updated, because many of this can be potentially outdated now. |
List updated. |
It is possible to generate graphical cppcheck report with this command
Looks that unused functions require to remove Generated report for bd9799e - report.zip Unread variables, redundant assignement, unusedStructMember, redundantInitialization and unused private function should be useful for this issue |
Probably worth refreshing this. A big PR was recently merged and the codebase changed quite a lot too. I tried using |
Here's a report against commit 9f74f0f. Generated with I've also opened #71767 to track the same issue but on the |
Godot version:
master branch commit 52b7f26
Issue description:
Unusued functions and variables found by
cppcheck
. Many of these could be false-positives due to binding to Java, Mono, etc.Steps to reproduce:
cd $godot_repo_root
cppcheck --enable=all --inconclusive --std=posix --force . 2> cppcheck_godot.log
rg -A 1 "\[unu" cppcheck_godot.log > unused_thirdparty_unfiltered.txt
Minimal reproduction project:
unused.txt
The text was updated successfully, but these errors were encountered: