drivers/graphics: Remove GraphicsAdapter::display_size

It is no longer used.
This commit is contained in:
bjorn3
2026-03-15 13:10:25 +01:00
parent 460ae0d57c
commit 93a8179d1f
4 changed files with 0 additions and 22 deletions
@@ -52,7 +52,6 @@ pub trait GraphicsAdapter: Sized + Debug {
///
/// This must be constant for the lifetime of the graphics adapter.
fn display_count(&self) -> usize;
fn display_size(&self, display_id: usize) -> (u32, u32);
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer;
fn map_dumb_buffer(&mut self, buffer: &Self::Buffer) -> *mut u8;
@@ -73,13 +73,6 @@ impl GraphicsAdapter for Device {
self.framebuffers.len()
}
fn display_size(&self, display_id: usize) -> (u32, u32) {
(
self.framebuffers[display_id].width as u32,
self.framebuffers[display_id].height as u32,
)
}
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer {
DumbFb::new(width as usize, height as usize)
}
-7
View File
@@ -80,13 +80,6 @@ impl GraphicsAdapter for FbAdapter {
self.framebuffers.len()
}
fn display_size(&self, display_id: usize) -> (u32, u32) {
(
self.framebuffers[display_id].width as u32,
self.framebuffers[display_id].height as u32,
)
}
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer {
GraphicScreen::new(width as usize, height as usize)
}
@@ -339,13 +339,6 @@ impl<'a> GraphicsAdapter for VirtGpuAdapter<'a> {
self.displays.len()
}
fn display_size(&self, display_id: usize) -> (u32, u32) {
(
self.displays[display_id].width,
self.displays[display_id].height,
)
}
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer {
futures::executor::block_on(async {
let bpp = 32;