From 198aa0ebd0fd78d2e289200e75c79cd688e36254 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Fri, 29 Nov 2024 18:13:38 +0100 Subject: [PATCH] cleanup++ --- src/geometry.rs | 1 - src/mappings.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/geometry.rs b/src/geometry.rs index ef675ae..3ee84d7 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -35,7 +35,6 @@ impl CoordinateOp for u8 { fn distance(x1: Self, y1: Self, x2: Self, y2: Self) -> Self { (max(x2, x1) - min(x2, x1)).saturating_add(max(y2, y1) - min(y2, y1)) - //(pow(x2 as u16 - x1 as u16, 2) + pow(y2 as u16 - y1 as u16, 2)).sqrt() as u8 } } diff --git a/src/mappings.rs b/src/mappings.rs index 451cc9c..1549608 100644 --- a/src/mappings.rs +++ b/src/mappings.rs @@ -88,7 +88,6 @@ impl Stride { #[derive(Debug)] pub struct StrideMapping { pub strides: [Stride; STRIDE_NUM], - pub stride_count: usize, pub pixel_count: usize, pub size: Rectangle } @@ -188,7 +187,6 @@ impl StrideMapping { Self { strides, - stride_count, pixel_count: physical_idx, size: s }