summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-10-04 10:00:21 +0300
committerLars Wirzenius <liw@liw.fi>2019-10-04 10:00:21 +0300
commitba9b4d27d1ba6489b0be9c97a0ebb7739bc8f635 (patch)
tree60602f0f38e4bda847d17027dc7b92830a8a5c43
parent256e3de75458d015b3af75260022436e89e0190c (diff)
downloadroadmap-ba9b4d27d1ba6489b0be9c97a0ebb7739bc8f635.tar.gz
Drop: method that wasn't mehnod
-rw-r--r--src/map.rs7
1 files changed, 1 insertions, 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 {