From 9106d9727f9cbc2081f6f62824bb943e566c2f9e Mon Sep 17 00:00:00 2001 From: John Date: Tue, 9 Jul 2024 01:12:10 -0500 Subject: [PATCH] Remove unused {get,set}_r16 --- src/cpu.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cpu.rs b/src/cpu.rs index a0e7869..e3db379 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -930,12 +930,7 @@ impl CPU { _ => self[r8].0 = data, } } - pub fn get_r16(&self, r16: R16) -> u16 { - self[r16].0 - } - pub fn set_r16(&mut self, r16: R16, data: u16) { - self[r16].0 = data; - } + pub fn get_r16ind_addr(&mut self, r16: R16Indirect) -> u16 { match r16 { R16Indirect::BC => self.bc.wide().0,