From cdd1b413e983a5f436b1339041959e795ff80c2a Mon Sep 17 00:00:00 2001 From: VoiceLessQ Date: Sun, 25 Oct 2026 01:01:41 -0200 Subject: [PATCH] proof: remove the unused Patterns::from_parts It came in with the first proofing commit (bcbe09df8) and has never had a caller; `#[allow(dead_code)]` kept the warning quiet. Because it is `pub(crate)`, nothing outside wordcraft-proof can reach it. --- crates/proof/src/patterns.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/proof/src/patterns.rs b/crates/proof/src/patterns.rs index a91235e4..cb5855d4 100644 --- a/crates/proof/src/patterns.rs +++ b/crates/proof/src/patterns.rs @@ -217,11 +217,6 @@ impl Patterns { self.exceptions.len() } - #[allow(dead_code)] - pub(crate) fn from_parts(alpha: Alphabet, map: FxMap>, max_len: usize) -> Patterns { - Patterns { alpha, map, max_len, exceptions: HashMap::new() } - } - /// Make `letters` part of the alphabet even if no pattern mentions them. pub fn add_letters(&mut self, letters: impl IntoIterator) { for c in letters {