Remove unused trait and impls
This commit is contained in:
parent
f577dec212
commit
b865f2f287
16
src/lib.rs
16
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],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue