Use the prompt
Include the surrounding project and any plugin or registration mechanisms. A function without a direct caller may still be loaded dynamically, so check those paths before removing it.
Find and safely remove unused code, deprecated methods, and commented-out blocks. Keep your codebase lean.
For GitLab Duo
Identify dead code in [FILE/COMPONENT]:
1. Unused functions
2. Unreachable code paths
3. Deprecated methods still in codebase
4. Commented-out code that should be removedInclude the surrounding project and any plugin or registration mechanisms. A function without a direct caller may still be loaded dynamically, so check those paths before removing it.