1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

factor: remove unused method "zero"

This commit is contained in:
Daniel Hofstetter 2024-04-15 16:10:11 +02:00
parent 11c4259a9a
commit dd25bab9b5

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)]