From 2b4bb13ab0a6bfd3e2ed72fe058303ea0cb9564a Mon Sep 17 00:00:00 2001 From: Daniel Lubarov Date: Thu, 18 Nov 2021 23:00:56 -0800 Subject: [PATCH] Remove total_constraints (#372) It's out of date, and unused now anyway. --- src/plonk/circuit_data.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plonk/circuit_data.rs b/src/plonk/circuit_data.rs index 6721552c..c2a8d6d0 100644 --- a/src/plonk/circuit_data.rs +++ b/src/plonk/circuit_data.rs @@ -246,11 +246,6 @@ impl, const D: usize> CommonCircuitData { self.quotient_degree_factor * self.degree() } - pub fn total_constraints(&self) -> usize { - // 2 constraints for each Z check. - self.config.num_challenges * 2 + self.num_gate_constraints - } - /// Range of the constants polynomials in the `constants_sigmas_commitment`. pub fn constants_range(&self) -> Range { 0..self.num_constants