diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-24 09:59:56 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-24 09:59:56 +0300 |
commit | 1cf0284bebe552028183375fb9922dc65d15cb4f (patch) | |
tree | 31633c285e0a96d90f5d2e62c09b7a604623b24c /src | |
parent | 1ce93cd3b8fccbfc348db31b04834f783ec581f0 (diff) | |
download | roadmap-1cf0284bebe552028183375fb9922dc65d15cb4f.tar.gz |
Drop: debugging output
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -71,7 +71,6 @@ impl Step { /// Set the status of a step. pub fn set_status(&mut self, status: &str) { - eprintln!("xxx setting status to {} for {}", status, self.label()); self.status = String::from(status); } @@ -107,11 +106,6 @@ impl Roadmap { roadmap.add_step(&step)?; } - for name in roadmap.step_names() { - let step = roadmap.get_step(name).unwrap(); - eprintln!("roadmap step {} ({}) status {}", name, step.name(), step.status()); - } - Ok(roadmap) } @@ -121,15 +115,12 @@ impl Roadmap { let status_key = Value::String("status".to_string()); let deps_key = Value::String("depends".to_string()); - eprintln!("=====\nstep_from_value: {:?}", value); match value { Value::Mapping(map) => { if let Some(Value::String(label)) = map.get(&label_key) { let mut step = Step::new(name, label); if let Some(Value::String(status)) = map.get(&status_key) { - eprintln!("step_from_value: status: {:?}", status); step.set_status(&status); - eprintln!("status from step: {:?}", step.status()); } if let Some(Value::Sequence(deps)) = map.get(&deps_key) { for depname in deps.iter() { @@ -215,7 +206,6 @@ impl Roadmap { } fn get_status_color(step: &Step) -> &str { -// eprintln!("color for {}: {}", step.status(), step.label()); match step.status() { "blocked" => "#f4bada", "finished" => "#eeeeee", @@ -227,7 +217,6 @@ impl Roadmap { } fn get_status_shape(step: &Step) -> &str { -// eprintln!("shape for {}", step.status()); match step.status() { "blocked" => "rectangle", "finished" => "circle", |