diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-10-04 10:00:21 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-10-04 10:00:21 +0300 |
commit | ba9b4d27d1ba6489b0be9c97a0ebb7739bc8f635 (patch) | |
tree | 60602f0f38e4bda847d17027dc7b92830a8a5c43 | |
parent | 256e3de75458d015b3af75260022436e89e0190c (diff) | |
download | roadmap-ba9b4d27d1ba6489b0be9c97a0ebb7739bc8f635.tar.gz |
Drop: method that wasn't mehnod
-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 { |