From d86afd7bf331c1c77ea8236b4046377eb233266c Mon Sep 17 00:00:00 2001 From: bing Date: Thu, 6 Jun 2024 10:55:07 +0800 Subject: [PATCH] chore: remove dead code from r1cs backend --- src/backends/r1cs/mod.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/backends/r1cs/mod.rs b/src/backends/r1cs/mod.rs index d7b9efeb6..e7e596c3c 100644 --- a/src/backends/r1cs/mod.rs +++ b/src/backends/r1cs/mod.rs @@ -94,25 +94,6 @@ where } } - /// Create a linear combination to represent constant zero. - fn zero(span: Span) -> Self { - LinearCombination { - terms: HashMap::new(), - constant: F::zero(), - span, - } - } - - /// Create a linear combination from a list of vars - fn from_vars(vars: Vec, span: Span) -> Self { - let terms = vars.into_iter().map(|var| (var, F::one())).collect(); - LinearCombination { - terms, - constant: F::zero(), - span, - } - } - /// Create a linear combination from a constant. fn from_const(cst: F, span: Span) -> Self { LinearCombination {