Skip to content

Commit

Permalink
Merge pull request #6240 from cakebaker/factor_remove_zero_method
Browse files Browse the repository at this point in the history
factor: remove unused method `zero`
  • Loading branch information
sylvestre authored Apr 15, 2024
2 parents 40600f2 + dd25bab commit e194022
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/uu/factor/src/numeric/montgomery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit e194022

Please sign in to comment.