From 75ac4ced0dbe8897d486cb7665eead261be7615d Mon Sep 17 00:00:00 2001 From: Keyvan Kambakhsh Date: Fri, 13 Oct 2023 02:33:31 +0330 Subject: [PATCH] Remove unused function --- src/zk/groth16/gadgets/common/uint.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/zk/groth16/gadgets/common/uint.rs b/src/zk/groth16/gadgets/common/uint.rs index a8caa69b..a84f9725 100644 --- a/src/zk/groth16/gadgets/common/uint.rs +++ b/src/zk/groth16/gadgets/common/uint.rs @@ -28,14 +28,6 @@ impl UnsignedInteger { pub fn num_bits(&self) -> usize { self.bits.len() } - pub fn extract_bits(&self, count: usize) -> Self { - let mut num = Number::zero(); - let bits = self.bits[..count].iter().cloned().collect::>(); - for b in bits.iter() { - num = num + Number::from(b.clone()); - } - Self { num, bits } - } pub fn alloc>( cs: &mut CS, val: ZkScalar,