From dd25bab9b5dbdfaf72adede8363e98f7eac67c62 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 15 Apr 2024 16:10:11 +0200 Subject: [PATCH] factor: remove unused method "zero" --- src/uu/factor/src/numeric/montgomery.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uu/factor/src/numeric/montgomery.rs b/src/uu/factor/src/numeric/montgomery.rs index 135b22e39..4807fc44f 100644 --- a/src/uu/factor/src/numeric/montgomery.rs +++ b/src/uu/factor/src/numeric/montgomery.rs @@ -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)]