Merge pull request #6240 from cakebaker/factor_remove_zero_method

factor: remove unused method `zero`
This commit is contained in:
Sylvestre Ledru
2024-04-15 20:09:49 +02:00
committed by GitHub
+1 -3
View File
@@ -43,12 +43,10 @@ pub(crate) trait Arithmetic: Copy + Sized {
fn one(&self) -> Self::ModInt {
self.to_mod(1)
}
fn minus_one(&self) -> Self::ModInt {
self.to_mod(self.modulus() - 1)
}
fn zero(&self) -> Self::ModInt {
self.to_mod(0)
}
}
#[derive(Clone, Copy, Debug)]