Skip to content

Commit 980fc73

Browse files
committed
Remove unused variable "fb_info" and the function to get it
1 parent 7d26335 commit 980fc73

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/display.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,4 @@ impl DrmBackend {
192192
pub fn map(&mut self) -> Result<DumbMapping> {
193193
Ok(self.card.map_dumb_buffer(&mut self.db)?)
194194
}
195-
pub fn fb_info(&self) -> Result<framebuffer::Info> {
196-
Ok(self.card.get_framebuffer(self.fb)?)
197-
}
198195
}

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ fn main() {
354354
let mut layers = if config.media_layer_default { [media_layer, fkey_layer] } else { [fkey_layer, media_layer] };
355355
let mut needs_complete_redraw = true;
356356
let mut drm = DrmBackend::open_card().unwrap();
357-
let fb_info = drm.fb_info().unwrap();
358357

359358
let mut input_tb = Libinput::new_with_udev(Interface);
360359
let mut input_main = Libinput::new_with_udev(Interface);

0 commit comments

Comments
 (0)