From 63bf7d6dbbd684537b3881eb54891b185498d933 Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Mon, 18 May 2020 21:11:20 +0300 Subject: [PATCH] core: Remove unused strust Former-commit-id: 5ac298c8f300062b91f3321d7b125b4c2132530a Former-commit-id: 7d1cc81d56a9d8d8d04097c43e48f3fb6e6f8d86 --- rustboyadvance-core/src/sysbus.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/rustboyadvance-core/src/sysbus.rs b/rustboyadvance-core/src/sysbus.rs index 196863b..bbeb49a 100644 --- a/rustboyadvance-core/src/sysbus.rs +++ b/rustboyadvance-core/src/sysbus.rs @@ -94,17 +94,6 @@ impl Bus for BoxedMemory { } } -#[derive(Serialize, Deserialize, Clone, Debug)] -struct DummyBus([u8; 4]); - -impl Bus for DummyBus { - fn read_8(&self, _addr: Addr) -> u8 { - 0 - } - - fn write_8(&mut self, _addr: Addr, _value: u8) {} -} - const CYCLE_LUT_SIZE: usize = 0x10; #[derive(Serialize, Deserialize, Clone)] @@ -207,7 +196,6 @@ pub struct SysBus { onboard_work_ram: BoxedMemory, internal_work_ram: BoxedMemory, pub cartridge: Cartridge, - dummy: DummyBus, cycle_luts: CycleLookupTables, @@ -334,7 +322,6 @@ impl SysBus { onboard_work_ram: BoxedMemory::new(vec![0; WORK_RAM_SIZE].into_boxed_slice()), internal_work_ram: BoxedMemory::new(vec![0; INTERNAL_RAM_SIZE].into_boxed_slice()), cartridge: cartridge, - dummy: DummyBus([0; 4]), cycle_luts: luts,