diff --git a/src/num.rs b/src/num.rs index d36e286..b1e0b03 100644 --- a/src/num.rs +++ b/src/num.rs @@ -2,8 +2,6 @@ use num_traits::{AsPrimitive, Float, Num}; /// Helper trait unifying fixed point and floating point coefficients/samples pub trait FilterNum: 'static + Copy + Num + AsPrimitive { - /// Scale - const SHIFT: u32; /// Multiplicative identity const ONE: Self; /// Negative multiplicative identity, equal to `-Self::ONE`. @@ -40,7 +38,6 @@ pub trait FilterNum: 'static + Copy + Num + AsPrimitive { macro_rules! impl_float { ($T:ty) => { impl FilterNum for $T { - const SHIFT: u32 = 0; const ONE: Self = 1.0; const NEG_ONE: Self = -1.0; const ZERO: Self = 0.0; @@ -82,7 +79,6 @@ impl_float!(f64); macro_rules! impl_int { ($T:ty, $U:ty, $A:ty, $Q:literal) => { impl FilterNum for $T { - const SHIFT: u32 = $Q; const ONE: Self = 1 << $Q; const NEG_ONE: Self = -1 << $Q; const ZERO: Self = 0;