chore: remove various warnings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-07-28 16:25:29 -05:00
parent e43cac8041
commit 2af673d7c5
3 changed files with 0 additions and 17 deletions

View File

@ -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;

View File

@ -43,11 +43,6 @@ impl<T> SampleProducer<T> {
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

View File

@ -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();