From 2af673d7c5eb59a3b8f1804243ce63d8327f5369 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Wed, 28 Jul 2021 16:25:29 -0500 Subject: [PATCH] chore: remove various warnings --- src/apu.rs | 8 -------- src/apu/gen.rs | 5 ----- src/bus.rs | 4 ---- 3 files changed, 17 deletions(-) diff --git a/src/apu.rs b/src/apu.rs index 2afceb9..0de2fa7 100644 --- a/src/apu.rs +++ b/src/apu.rs @@ -168,14 +168,6 @@ impl Apu { self.prod = Some(prod); } - #[inline] - pub(crate) fn is_full(&self) -> bool { - match self.prod.as_ref() { - Some(prod) => prod.is_full(), - None => false, - } - } - /// 0xFF26 | NR52 - Sound On/Off pub(crate) fn set_status(&mut self, byte: u8) { self.ctrl.enabled = (byte >> 7) & 0x01 == 0x01; diff --git a/src/apu/gen.rs b/src/apu/gen.rs index a180565..7079e04 100644 --- a/src/apu/gen.rs +++ b/src/apu/gen.rs @@ -43,11 +43,6 @@ impl SampleProducer { self.inner.push(value) } - #[inline] - pub(crate) fn is_full(&self) -> bool { - self.inner.is_full() - } - #[inline] pub(crate) fn two_available(&self) -> bool { self.inner.slots() > 2 diff --git a/src/bus.rs b/src/bus.rs index ac33c2e..7d3f9ef 100644 --- a/src/bus.rs +++ b/src/bus.rs @@ -66,10 +66,6 @@ impl Bus { self.cartridge.as_ref()?.title() } - pub(crate) fn apu(&self) -> &Apu { - &self.apu - } - pub(crate) fn clock(&mut self) { self.ppu.clock(); self.timer.clock();