From 2e9da0d7aab136d8098e18228324b504b7d4d048 Mon Sep 17 00:00:00 2001 From: "Dr. Matthias Ratajczak" Date: Fri, 23 Sep 2022 17:56:20 +0200 Subject: [PATCH] clean up 81 --- src/euler81/src/main.rs | 19 ------------------- 1 file changed, 19 deletions(-) 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 {