cleanup
This commit is contained in:
parent
43130b665d
commit
a963722b27
2 changed files with 2 additions and 25 deletions
|
@ -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);
|
||||
|
|
16
src/level.rs
16
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 {
|
||||
|
|
Loading…
Reference in a new issue