Skip to content

chore(core): remove unused ProxyResponseBody::empty()#73

Open
alukach wants to merge 1 commit into
mainfrom
chore/drop-proxyresponsebody-empty
Open

chore(core): remove unused ProxyResponseBody::empty()#73
alukach wants to merge 1 commit into
mainfrom
chore/drop-proxyresponsebody-empty

Conversation

@alukach

@alukach alukach commented Jun 18, 2026

Copy link
Copy Markdown
Member

What I'm changing

ProxyResponseBody::empty() in crates/core/src/route_handler.rs has zero callers anywhere in the workspace — not in production code, not in tests. Call sites construct ProxyResponseBody::Empty directly, and from_bytes already collapses empty input to Empty, so the named constructor is dead public API. Surfaced by a repo-wide over-engineering audit.

How I did it

  • crates/core/src/route_handler.rs — deleted the empty() method (and its doc comment) from the impl ProxyResponseBody block. from_bytes is left untouched.

Test plan

  • cargo check -p multistore
  • cargo clippy -p multistore (clean)
  • cargo fmt

🤖 Generated with Claude Code

The `empty()` constructor had no callers anywhere in the workspace (including
tests) — call sites use the `ProxyResponseBody::Empty` variant directly, and
`from_bytes` already collapses empty input to `Empty`. Drop the dead method.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Latest commit deployed to https://multistore-proxy-pr-73.development-seed.workers.dev

  • Date: 2026-06-18T23:38:15Z
  • Commit: 649a521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant