refactor(math): remove dead/self-referential code from polynomial.rs#641
refactor(math): remove dead/self-referential code from polynomial.rs#641diegokingston wants to merge 2 commits into
Conversation
Remove functions with no production callers (only exercised by their own tests) from crypto/math/src/polynomial.rs: - compose_fft (was #[cfg(test)], tested only by composition_fft_works) - pad_with_zero_coefficients + pad_with_zero_coefficients_to_length - mul_with_ref (no Polynomial Mul operator exists) - new_monomial Adjust affected tests: drop self-tests, rewrite the evaluate-coverage tests to build polynomials via Polynomial::new, and inline the single production-test call site (X^8) in prover_tests.
Codex Code ReviewNo security, VM, or performance issues found in the PR diff. One potential compatibility concern: Tests not run: |
Review: refactor(math): remove dead/self-referential code from polynomial.rs\n\nOverall: Clean removal. No issues found.\n\nRemoves 5 dead functions from
|
MauroToscano
left a comment
There was a problem hiding this comment.
Why do we even have the Polynomial at this point ? You cannot do much with them, right ?
Remove functions with no production callers (only exercised by their own tests) from crypto/math/src/polynomial.rs:
Adjust affected tests: drop self-tests, rewrite the evaluate-coverage tests to build polynomials via Polynomial::new, and inline the single production-test call site (X^8) in prover_tests.