remove_dead_code
Safely remove unused code symbols by verifying they have no dependencies before deletion, while checking for orphaned imports across files.
Instructions
Safely remove a dead symbol from its file. Verifies the symbol is actually dead (multi-signal detection or zero incoming edges) before removal. Warns about orphaned imports in other files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol ID to remove (from get_dead_code results) | |
| dry_run | No | Preview changes without applying (default: false) |