diff --git a/src/main.rs b/src/main.rs index 7f6aa7c..7312527 100644 --- a/src/main.rs +++ b/src/main.rs @@ -300,7 +300,6 @@ fn main() { last_instruction_addr: 0x0, }; cpu_ram_init(&mut cpu); - #[allow(unused_variables)] let mut cycle_num = 0; let mut instructions_seen = vec![]; let mut last_state = cpu.state.clone(); @@ -375,7 +374,6 @@ fn run_cycle( } } -#[allow(dead_code)] fn pause() { unsafe { if PAUSE_ENABLED { @@ -385,12 +383,11 @@ fn pause() { } } } -#[allow(dead_code)] + fn pause_once() { io::stdin().read_line(&mut String::new()).unwrap(); } -#[allow(dead_code)] fn print_cycles(cycles: &i32) { if *cycles % 456789 != 0 { return; diff --git a/src/processor/mod.rs b/src/processor/mod.rs index 97f7174..514f3a0 100644 --- a/src/processor/mod.rs +++ b/src/processor/mod.rs @@ -7,7 +7,6 @@ use crate::{verbose_println, Inner, Memory, Register, State}; mod opcodes; -#[allow(dead_code)] #[derive(PartialEq)] enum FLAGS { Zero = 7,