Skip to content

Remove dead code with no production callers#10

Merged
alexkroman merged 1 commit into
mainfrom
claude/keen-feynman-YrZZv
Jun 5, 2026
Merged

Remove dead code with no production callers#10
alexkroman merged 1 commit into
mainfrom
claude/keen-feynman-YrZZv

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Delete six functions/classes that were unreachable from any CLI entry point
and kept alive only by their own tests:

  • config_builder.build_transcription_config / build_streaming_params:
    redundant wrappers; commands call merge_()+construct_() directly.
  • auth.ams.get_auth: superseded; the login flow reads the account from
    exchange()'s response instead of a second GET /v1/auth round-trip.
  • agent.audio.Player (and its now-orphaned _default_output_stream factory):
    superseded by DuplexAudio / _DuplexPlayer.
  • config.set_active_profile: no caller; the active profile is set via
    set_api_key().
  • environments.known(): no caller.

Tests that exercised unique behavior (layer precedence, the coercion matrix,
the translate payload, the exchange-account path) are rerouted through the
real production code paths rather than dropped, so coverage holds at 94%.

Delete six functions/classes that were unreachable from any CLI entry point
and kept alive only by their own tests:

- config_builder.build_transcription_config / build_streaming_params:
  redundant wrappers; commands call merge_*()+construct_*() directly.
- auth.ams.get_auth: superseded; the login flow reads the account from
  exchange()'s response instead of a second GET /v1/auth round-trip.
- agent.audio.Player (and its now-orphaned _default_output_stream factory):
  superseded by DuplexAudio / _DuplexPlayer.
- config.set_active_profile: no caller; the active profile is set via
  set_api_key().
- environments.known(): no caller.

Tests that exercised unique behavior (layer precedence, the coercion matrix,
the translate payload, the exchange-account path) are rerouted through the
real production code paths rather than dropped, so coverage holds at 94%.
@alexkroman alexkroman merged commit 3407685 into main Jun 5, 2026
13 checks passed
@alexkroman alexkroman deleted the claude/keen-feynman-YrZZv branch June 5, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants