core: Remove unused strust
Former-commit-id: 5ac298c8f300062b91f3321d7b125b4c2132530a Former-commit-id: 7d1cc81d56a9d8d8d04097c43e48f3fb6e6f8d86
This commit is contained in:
parent
db3be711ae
commit
63bf7d6dbb
|
@ -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;
|
const CYCLE_LUT_SIZE: usize = 0x10;
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
|
@ -207,7 +196,6 @@ pub struct SysBus {
|
||||||
onboard_work_ram: BoxedMemory,
|
onboard_work_ram: BoxedMemory,
|
||||||
internal_work_ram: BoxedMemory,
|
internal_work_ram: BoxedMemory,
|
||||||
pub cartridge: Cartridge,
|
pub cartridge: Cartridge,
|
||||||
dummy: DummyBus,
|
|
||||||
|
|
||||||
cycle_luts: CycleLookupTables,
|
cycle_luts: CycleLookupTables,
|
||||||
|
|
||||||
|
@ -334,7 +322,6 @@ impl SysBus {
|
||||||
onboard_work_ram: BoxedMemory::new(vec![0; WORK_RAM_SIZE].into_boxed_slice()),
|
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()),
|
internal_work_ram: BoxedMemory::new(vec![0; INTERNAL_RAM_SIZE].into_boxed_slice()),
|
||||||
cartridge: cartridge,
|
cartridge: cartridge,
|
||||||
dummy: DummyBus([0; 4]),
|
|
||||||
|
|
||||||
cycle_luts: luts,
|
cycle_luts: luts,
|
||||||
|
|
||||||
|
|
Reference in a new issue