Skip to content

chore: delete two uncalled public functions to restore the footprint ceiling - #5372

Closed
auser wants to merge 1 commit into
mainfrom
fix/rust-footprint-under-ceiling
Closed

auser wants to merge 1 commit into
mainfrom
fix/rust-footprint-under-ceiling

Conversation

@auser

@auser auser commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

main is red: check-rust-footprint reports 966013 SLOC against the 966000 ceiling after #5365, so Invariant fails on every PR, including the rustix security fix #5371 that the Security run needs.

The ceiling is unchanged. This deletes two public functions that nothing calls:

  • mvm-build runtime_layer::compose_runtime_layers: no caller, test or doc reference; compose_authored_candidate (which composes through the same helpers) is untouched.
  • mvm-vmm EgressGate::decide_addr: no caller; a one-line wrapper over decide_addr_for_proto, which the other entry points still use. No verdict logic changes.

Checked: a search of every Rust source for each name finds only its definition, and none of the open PR branches (including the pack-composition ones) uses either. cargo clippy --all-targets -D warnings on mvm-build and mvm-vmm is clean, and cargo run -p xtask -- check-rust-footprint now passes at 965998 SLOC.

Margin is 2 lines, so the next change that adds code will need to delete some too. Related: #5121.

…nder the footprint ceiling

check-rust-footprint failed on main after the HVF pid-marker change: 966013
SLOC against a 966000 ceiling, which reds Invariant on every PR. The ceiling
stays where it is.

compose_runtime_layers (mvm-build) and EgressGate::decide_addr (mvm-vmm) are
public, have no caller, test or reference anywhere in the tree or in any open
PR branch, and are thin wrappers over helpers that remain
(compose_authored_candidate, decide_addr_for_proto). Removing them takes the
measured total to 965998.
@auser

auser commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #5373, which brought main under the footprint ceiling.

@auser auser closed this Nov 12, 2026
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.

1 participant