Remove dead code
Find and safely remove unreachable branches, unused variables, commented-out blocks, and stale feature flags. Confirms each deletion is safe first.
Preview
Copy prompt
Analyse the following codebase excerpt for dead code: [Paste code]. Look for unreachable branches, variables that are assigned but never read, entire functions that are never called, commented-out blocks left from old implementations, and feature flags whose conditions are always true or always false. List each finding with its location in the file, confirm why it is safe to remove, and show the cleaned-up version.
More
Refactoring
Prompts
