Skip to content

Commit

Permalink
SQUASH ME: cleanup dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
joeykraut committed Oct 13, 2023
1 parent 018eb25 commit ba11777
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/algebra/poly/authenticated_poly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl<C: CurveGroup> Div<&DensePolynomialResult<C>> for &AuthenticatedDensePoly<C
}

let mut remainder = self.clone();
let mut quotient_coeffs = fabric.ones_authenticated(quotient_degree + 1);
let mut quotient_coeffs = fabric.zeros_authenticated(quotient_degree + 1);

let divisor_leading_inverse = rhs.coeffs.last().unwrap().inverse();
for deg in (0..=quotient_degree).rev() {
Expand All @@ -374,9 +374,6 @@ impl<C: CurveGroup> Div<&DensePolynomialResult<C>> for &AuthenticatedDensePoly<C
remainder.coeffs.pop();
}

// Reverse the quotient coefficients, long division generates them leading coefficient first, and
// we store them leading coefficient last
// quotient_coeffs.reverse();
AuthenticatedDensePoly::from_coeffs(quotient_coeffs)
}
}
Expand Down

0 comments on commit ba11777

Please sign in to comment.