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:
parent
11c4259a9a
commit
dd25bab9b5
1 changed files with 1 additions and 3 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue