diff --git a/src/editor.rs b/src/editor.rs index b6769c9..6565fba 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -757,15 +757,8 @@ impl Editor { draw_usize(d, textures, self.machine.step_count(), 420, 4, 9, 2); if self.stage > Some(0) { - draw_usize( - d, - textures, - self.total_steps + self.machine.step_count(), - 420, - 44, - 9, - 2, - ); + let total_steps = self.total_steps + self.machine.step_count(); + draw_usize(d, textures, total_steps, 420, 44, 9, 2); } draw_usize(d, textures, self.step_time as usize, 260, 42, 9, 1); diff --git a/src/level.rs b/src/level.rs index 0a23ed8..1d268cf 100644 --- a/src/level.rs +++ b/src/level.rs @@ -67,22 +67,6 @@ impl Level { pub fn stages(&self) -> &[Stage] { &self.stages } - - // pub fn inputs(&self) -> &[u8] { - // self.inputs.as_bytes() - // } - - // pub fn outputs(&self) -> &[u8] { - // self.outputs.as_bytes() - // } - - // pub fn input_is_text(&self) -> bool { - // matches!(self.inputs, IOData::Text(_)) - // } - - // pub fn output_is_text(&self) -> bool { - // matches!(self.outputs, IOData::Text(_)) - // } } impl Stage {