From ba9b4d27d1ba6489b0be9c97a0ebb7739bc8f635 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 4 Oct 2019 10:00:21 +0300 Subject: Drop: method that wasn't mehnod --- src/map.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/map.rs b/src/map.rs index cd1cb46..a5a1b77 100644 --- a/src/map.rs +++ b/src/map.rs @@ -62,7 +62,7 @@ impl Roadmap { .iter() .map(|step| { let mut step = step.clone(); - if self.is_unset(&step) { + if step.status() == Status::Unknown { if self.is_goal(&step) { step.set_status(Status::Goal); } else if self.is_blocked(&step) { @@ -81,11 +81,6 @@ impl Roadmap { } } - /// Is status unset? - pub fn is_unset(&self, step: &Step) -> bool { - step.status() == Status::Unknown - } - /// Should unset status be ready? In other words, if there are any /// dependencies, they are all finished. pub fn is_ready(&self, step: &Step) -> bool { -- cgit v1.2.1