Skip to content

chore(lints): deny unused items - #44

Open
mkoushni wants to merge 2 commits into
praxis-proxy:mainfrom
mkoushni:lint/deny-dead-code
Open

chore(lints): deny unused items#44
mkoushni wants to merge 2 commits into
praxis-proxy:mainfrom
mkoushni:lint/deny-dead-code

Conversation

@mkoushni

@mkoushni mkoushni commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

dead_code was allowed, so unused functions only showed up while chasing coverage. That is the wrong way to find them. The lint is now deny.

AplRouteHandler::with_pdp_router had no caller and is gone (0.1.x). Hosts that need several PDP dialects still pass a PdpRouter to with_pdp. PolicyEngine::remove_route_annotation stays: main's reentrancy tests call it.

Everything else that fired was deleted or kept with a reason. make machete had one real unused dep: a direct hyper on the facade that hyper-util already pulls in.

Closes #13

Test plan

  • make ci
  • make coverage (95.29%, floor 95)
  • make machete clean
  • merge conflict with praxis-proxy/main resolved; make lint and make test after the merge

So a function with no caller is a compile error rather than something
coverage work has to find by hand. Drops remove_route_annotation and
with_pdp_router, and the unused hyper crate machete reported.

Signed-off-by: mkoushni <mkoushni@redhat.com>
Keep PolicyEngine::remove_route_annotation; main's reentrancy tests call it.
with_pdp_router stays gone.

Signed-off-by: mkoushni <mkoushni@redhat.com>
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.

chore(lints): remove dead code

1 participant