Skip to content

chore(core): remove unused HandlerAction::response_headers_mut()#74

Open
alukach wants to merge 1 commit into
mainfrom
chore/drop-response-headers-mut
Open

chore(core): remove unused HandlerAction::response_headers_mut()#74
alukach wants to merge 1 commit into
mainfrom
chore/drop-response-headers-mut

Conversation

@alukach

@alukach alukach commented Jun 18, 2026

Copy link
Copy Markdown
Member

What I'm changing

HandlerAction::response_headers_mut() in crates/core/src/route_handler.rs had no callers other than its own three unit tests — no production path mutates response headers through it. It's dead public API kept alive only by the tests that test it. Surfaced by a repo-wide over-engineering audit.

How I did it

  • crates/core/src/route_handler.rs — removed the method and its sole impl HandlerAction block, plus the three test_response_headers_mut_* tests. If an integrator later needs mutable access to response headers, the accessor is trivial to re-add.

Test plan

  • cargo check -p multistore
  • cargo clippy -p multistore (clean)
  • cargo test -p multistore --lib route_handler — 6 passed, 0 failed
  • cargo fmt

🤖 Generated with Claude Code

The only callers of `response_headers_mut` were its own three unit tests — no
production code path used it. Drop the method, its sole `impl HandlerAction`
block, and the tests. Can be re-added as integrator API if a real consumer
appears.

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-74.development-seed.workers.dev

  • Date: 2026-06-18T23:39:17Z
  • Commit: b28ae54

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