diff --git a/src/arithmetic/bigint/modulus.rs b/src/arithmetic/bigint/modulus.rs index b0750639a..dc7a9f880 100644 --- a/src/arithmetic/bigint/modulus.rs +++ b/src/arithmetic/bigint/modulus.rs @@ -95,14 +95,7 @@ impl OwnedModulus { input: untrusted::Input, cpu_features: cpu::Features, ) -> Result { - let limbs = BoxedLimbs::positive_minimal_width_from_be_bytes(input)?; - Self::from_boxed_limbs(limbs, cpu_features) - } - - fn from_boxed_limbs( - n: BoxedLimbs, - cpu_features: cpu::Features, - ) -> Result { + let n = BoxedLimbs::positive_minimal_width_from_be_bytes(input)?; if n.len() > MODULUS_MAX_LIMBS { return Err(error::KeyRejected::too_large()); }