Remove unnecessary computation of permutation length in prover.

This commit is contained in:
Sean Bowe 2020-09-06 11:33:09 -06:00
parent 503939db05
commit 624eb6a421
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 0 additions and 8 deletions

View File

@ -71,14 +71,6 @@ impl<C: CurveAffine> Proof<C> {
let mut meta = MetaCircuit::default();
let config = ConcreteCircuit::configure(&mut meta);
// Get the largest permutation argument length in terms of the number of
// advice wires involved.
let mut largest_permutation_length = 0;
for permutation in &meta.permutations {
largest_permutation_length =
std::cmp::max(permutation.len(), largest_permutation_length);
}
let mut witness = WitnessCollection {
advice: vec![vec![C::Scalar::zero(); params.n as usize]; meta.num_advice_wires],
};