clean up 81

This commit is contained in:
Dr. Matthias Ratajczak
2022-09-23 17:56:20 +02:00
parent 74592d2b32
commit 2e9da0d7aa
-19
View File
@@ -137,25 +137,6 @@ struct Node {
previous: Option<Coordinate>,
}
impl Node {
fn smaller_distance(&self, other: &Self) -> Option<std::cmp::Ordering> {
match self.distance {
Some(v1) => match other.distance {
Some(v2) => v1.partial_cmp(&v2),
None => Some(std::cmp::Ordering::Less),
},
None => match other.distance {
Some(_) => Some(std::cmp::Ordering::Greater),
None => None,
},
}
}
// fn smaller_value(&self, other: &Self) -> Option<std::cmp::Ordering> {
// self.value.partial_cmp(&other.value)
// }
}
impl From<u32> for Node {
fn from(value: u32) -> Self {
Node {