diff --git a/src/apu/gen.rs b/src/apu/gen.rs index 1a1cc91..a16acea 100644 --- a/src/apu/gen.rs +++ b/src/apu/gen.rs @@ -43,6 +43,7 @@ impl SampleProducer { self.inner.push(value) } + #[allow(dead_code)] pub(crate) fn available(&self) -> bool { self.inner.slots() > 2 } diff --git a/src/bus.rs b/src/bus.rs index aa0765d..34304ea 100644 --- a/src/bus.rs +++ b/src/bus.rs @@ -374,17 +374,6 @@ impl BusIo for Bus { } } -impl Bus { - pub(crate) fn read_word(&self, addr: u16) -> u16 { - (self.read_byte(addr + 1) as u16) << 8 | self.read_byte(addr) as u16 - } - - pub(crate) fn write_word(&mut self, addr: u16, word: u16) { - self.write_byte(addr + 1, (word >> 8) as u8); - self.write_byte(addr, (word & 0x00FF) as u8); - } -} - impl Bus { fn interrupt_flag(&self) -> InterruptFlag { // Read the current interrupt information from the PPU