Skip to content

Dead code: stripAppendedEnvironmentDetails never called in production #11228

@hannesrudolph

Description

@hannesrudolph

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions