From e6dd1c246194c045ae35a3bdeeac1512c8d81e2b Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Tue, 20 Jul 2021 07:22:59 -0600 Subject: [PATCH] Remove value_at --- src/bridgetree.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/bridgetree.rs b/src/bridgetree.rs index 634e958..6f04bd3 100644 --- a/src/bridgetree.rs +++ b/src/bridgetree.rs @@ -149,19 +149,6 @@ impl NonEmptyFrontier { } impl NonEmptyFrontier { - /// Returns the value of the leaf or ommer at the specified altitude. - pub fn value_at(&self, lvl: Altitude) -> Option { - if lvl == Altitude::zero() { - Some(self.leaf_value()) - } else { - self.ommers - .iter() - .zip(self.position.ommer_altitudes()) - .find(|(_, l)| *l == lvl) - .map(|(p, _)| p.clone()) - } - } - /// Returns the value of the most recently appended leaf. pub fn leaf_value(&self) -> H { match &self.leaf {