Problem
PR #11198 introduced stripAppendedEnvironmentDetails(), stripEnvDetailsFromText(), and stripEnvDetailsFromToolResult() in appendEnvironmentDetails.ts. These functions are exported, tested, but never imported or called anywhere in production code (Task.ts only imports removeEnvironmentDetailsBlocks and appendEnvironmentDetails).
This dead code adds 93 lines of unreachable logic and 7 test cases for code that cannot execute, increasing maintenance burden and giving a false sense of coverage.
Impact
- Developers maintaining
appendEnvironmentDetails.ts may assume the stripping functions are in use and be reluctant to modify them
- 191 lines of dead code and tests inflate the codebase unnecessarily