Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrakisk committed Jan 7, 2025
1 parent 9898c26 commit 2aa5c8f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vines"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
license-file = "LICENSE"
description = "NES emulator library"
Expand Down
16 changes: 0 additions & 16 deletions src/cpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,6 @@ impl CPU {
self.program_counter = self.mapper.borrow().read_u16(0xFFFC);
}

pub fn run(&mut self) {
loop {
self.execute_next_instruction();
}
}

pub fn run_with_callback<F>(&mut self, mut callback: F)
where
F: FnMut(&mut CPU),
{
loop {
callback(self);
self.execute_next_instruction();
}
}

pub fn execute_next_instruction(&mut self) -> InstructionResult {
let mut instruction_result = InstructionResult { executed_cycles: 0 };
instruction_result.executed_cycles += self.handle_nmi_interrupt();
Expand Down

0 comments on commit 2aa5c8f

Please sign in to comment.