Skip to content

Commit 846de3f

Browse files
committed
Remove doubled - no longer needed
1 parent 6195160 commit 846de3f

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎crates/ppvm-traits-2/src/arithmetic/coefficient.rs‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ pub trait Coefficient:
2929
*self = self.mul_sign(sign)
3030
}
3131

32-
/// Add this coefficient to itself. Numeric implementations may use their
33-
/// native multiply-by-two operation; exact rings retain the additive default.
34-
#[inline(always)]
35-
fn doubled(&self) -> Self {
36-
let mut result = self.clone();
37-
result += self;
38-
result
39-
}
40-
4132
/// Nonnegative magnitude. Exposes a property of the value for a `Policy` to
4233
/// threshold; it does not itself decide any cutoff. Replaces the old
4334
/// `Coefficient::cutoff`.
@@ -50,11 +41,6 @@ impl Coefficient for f64 {
5041
(sign as f64) * (*self)
5142
}
5243

53-
#[inline(always)]
54-
fn doubled(&self) -> Self {
55-
*self * 2.0
56-
}
57-
5844
#[inline]
5945
fn magnitude(&self) -> f64 {
6046
self.abs()
@@ -67,11 +53,6 @@ impl Coefficient for num::Complex<f64> {
6753
(sign as f64) * (*self)
6854
}
6955

70-
#[inline(always)]
71-
fn doubled(&self) -> Self {
72-
*self * 2.0
73-
}
74-
7556
#[inline]
7657
fn magnitude(&self) -> f64 {
7758
self.norm()

0 commit comments

Comments
 (0)