You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `-write` flag that auto-inserted `@dead` annotations into source files
was removed as it added significant complexity for a rarely-used feature.
## Deleted
- `WriteDeadAnnotations.ml` (156 lines)
- `Common.Cli.write` ref
- `DceConfig.cli.write` field
- `type line` and `type lineAnnotation` in Common.ml
- `shouldWriteLineAnnotation` and `lineAnnotation` fields in DeadWarning
- `-write` CLI argument
- `~config` parameter from `logAdditionalInfo` (now unused)
## Simplified
- `emitWarning` no longer computes line annotations
- `logAdditionalInfo` no longer needs config parameter
- DeadWarning type now just has: deadWarning, path, message
## Rationale
The feature:
- Added file I/O during analysis (violated pure analysis principles)
- Maintained global state (currentFile, currentFileLines refs)
- Required threading lineAnnotation through warning system
- Was rarely used (most users want to delete dead code, not annotate it)
Users who want to suppress warnings can still manually add `@dead` annotations.
0 commit comments