From 7af47ec26013c81ba5905d4b6b4137bb111cc74d Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 29 Apr 2024 04:07:08 +0800 Subject: [PATCH] cleanup warnings, remove dead code --- services/graphics-server/src/backend/cramium.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/graphics-server/src/backend/cramium.rs b/services/graphics-server/src/backend/cramium.rs index 27caae8a1..dd590de18 100644 --- a/services/graphics-server/src/backend/cramium.rs +++ b/services/graphics-server/src/backend/cramium.rs @@ -101,7 +101,6 @@ pub struct XousDisplay { next_free_line: usize, spim: udma::Spim, devboot: bool, - iox: IoxHal, } impl XousDisplay { @@ -183,7 +182,7 @@ impl XousDisplay { Some(iox::IoxDriveStrength::Drive2mA), ); - let mut display = XousDisplay { fb, spim, next_free_line: 0, devboot: false, iox }; + let mut display = XousDisplay { fb, spim, next_free_line: 0, devboot: false }; // initialize the DMA buffer with valid mode/address lines & blank data for line in 0..FB_LINES { @@ -223,10 +222,12 @@ impl XousDisplay { unimplemented!("Cramium platform does not yet support suspend/resume"); } + #[allow(dead_code)] pub fn suspend(&mut self) { unimplemented!("Cramium platform does not yet support suspend/resume"); } + #[allow(dead_code)] pub fn resume(&mut self) { unimplemented!("Cramium platform does not yet support suspend/resume"); }