factor: remove unused method "zero"

This commit is contained in:
Daniel Hofstetter
2024-04-15 16:10:11 +02:00
parent 11c4259a9a
commit dd25bab9b5
+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)]