diff --git a/src/euler81/src/main.rs b/src/euler81/src/main.rs index 3e0b558..4c2a100 100644 --- a/src/euler81/src/main.rs +++ b/src/euler81/src/main.rs @@ -137,25 +137,6 @@ struct Node { previous: Option, } -impl Node { - fn smaller_distance(&self, other: &Self) -> Option { - 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 { - // self.value.partial_cmp(&other.value) - // } -} - impl From for Node { fn from(value: u32) -> Self { Node {