diff --git a/src/lib.rs b/src/lib.rs index 8c53ee1..b991055 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -618,12 +618,6 @@ struct UpperNode { nearest: [PointId; M], } -impl Node for UpperNode { - fn nearest_mut(&mut self) -> &mut [PointId] { - &mut self.nearest - } -} - #[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] #[derive(Clone, Copy, Debug)] struct ZeroNode { @@ -645,16 +639,6 @@ impl Default for ZeroNode { } } -impl Node for ZeroNode { - fn nearest_mut(&mut self) -> &mut [PointId] { - &mut self.nearest - } -} - -trait Node: Default { - fn nearest_mut(&mut self) -> &mut [PointId]; -} - struct NearestIter<'a> { nearest: &'a [PointId], }