build.rs: remove unused MAX_UNLOCK_ATTEMPTS
What changed, and why it matters
This commit removes one unused constant (MAX_UNLOCK_ATTEMPTS) from a build script. It is a cleanup change with no functional or security effect.
No action needed; this is a benign dead-code removal.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff deletes MAX_UNLOCK_ATTEMPTS from the ALLOWLIST_VARS array in src/rust/bitbox02-sys/build.rs. The commit message states the Rust usage was already removed in a prior commit, so this is a follow-up cleanup to stop exporting an unused C define to Rust bindings. No code behavior changes.
Changed components
src/rust/bitbox02-sys/build.rsInspect captured patch +0 / −1
diff --git a/src/rust/bitbox02-sys/build.rs b/src/rust/bitbox02-sys/build.rs
index 9f09f82..ce6662b 100644
--- a/src/rust/bitbox02-sys/build.rs
+++ b/src/rust/bitbox02-sys/build.rs
@@ -29,7 +29,6 @@ const ALLOWLIST_VARS: &[&str] = &[
"INPUT_STRING_MAX_SIZE",
"MAX_LABEL_SIZE",
"MAX_PK_SCRIPT_SIZE",
- "MAX_UNLOCK_ATTEMPTS",
"MAX_VARINT_SIZE",
"MEMORY_DEVICE_NAME_MAX_LEN",
"MEMORY_MULTISIG_NUM_ENTRIES",
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.