Remove unused trait and impls

This commit is contained in:
Dirkjan Ochtman 2021-01-14 16:53:22 +01:00
parent f577dec212
commit b865f2f287
1 changed files with 0 additions and 16 deletions

View File

@ -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],
}