Skip to content

Commit e194022

Browse files
authored
Merge pull request #6240 from cakebaker/factor_remove_zero_method
factor: remove unused method `zero`
2 parents 40600f2 + dd25bab commit e194022

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/uu/factor/src/numeric/montgomery.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ pub(crate) trait Arithmetic: Copy + Sized {
4343
fn one(&self) -> Self::ModInt {
4444
self.to_mod(1)
4545
}
46+
4647
fn minus_one(&self) -> Self::ModInt {
4748
self.to_mod(self.modulus() - 1)
4849
}
49-
fn zero(&self) -> Self::ModInt {
50-
self.to_mod(0)
51-
}
5250
}
5351

5452
#[derive(Clone, Copy, Debug)]

0 commit comments

Comments
 (0)