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 }