diff options
-rw-r--r-- | src/map.rs | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 { |