From 3a4656076fe84f2d388728b29c86289a0aef0da9 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 3 Mar 2023 14:50:27 +1100 Subject: [PATCH] dead code --- src/processor/memory.rs | 3 --- src/processor/memory/mmio/gpu.rs | 1 - 2 files changed, 4 deletions(-) diff --git a/src/processor/memory.rs b/src/processor/memory.rs index ea1de77..bfe012e 100644 --- a/src/processor/memory.rs +++ b/src/processor/memory.rs @@ -13,12 +13,10 @@ pub(crate) mod rom; pub(crate) type Address = u16; -#[allow(dead_code)] pub struct Memory { bootrom: Option>, rom: Rom, ram: [u8; 8192], - switchable_ram: [u8; 8192], cpu_ram: [u8; 128], pub(super) interrupts: Interrupts, pub(super) ime: bool, @@ -48,7 +46,6 @@ impl Memory { bootrom, rom, ram: [0x0; 8192], - switchable_ram: [0x0; 8192], cpu_ram: [0x0; 128], interrupts: Interrupts::default(), ime: false, diff --git a/src/processor/memory/mmio/gpu.rs b/src/processor/memory/mmio/gpu.rs index f43f2ba..0e58f08 100644 --- a/src/processor/memory/mmio/gpu.rs +++ b/src/processor/memory/mmio/gpu.rs @@ -301,7 +301,6 @@ impl Gpu { } } - #[allow(clippy::too_many_arguments)] fn render_tiles( &mut self, scanline: u8,