From ed22865f041f141362c1ff6bd977860377f969fe Mon Sep 17 00:00:00 2001 From: Andreas Molzer Date: Sun, 11 Oct 2020 15:09:29 +0200 Subject: [PATCH] Remove unused and incorrect Wrapping impl This is used in the predictor and should be reversible but for floating point the simply addition is not. It should instead be some variant of byte casting but it hasn't been implemented yet. --- src/decoder/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 4cc1bd7..033f2dd 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -237,18 +237,6 @@ impl Wrapping for u64 { } } -impl Wrapping for f32 { - fn wrapping_add(&self, other: Self) -> Self { - self + other - } -} - -impl Wrapping for f64 { - fn wrapping_add(&self, other: Self) -> Self { - self + other - } -} - fn rev_hpredict_nsamp(image: &mut [T], size: (u32, u32), samples: usize) -> TiffResult<()> where T: Copy + Wrapping,