Remove dead code causing warnings (#278)

This commit is contained in:
Pedro Côrte-Real 2017-09-04 07:45:56 +01:00 committed by tomaka
parent 3d1c18ded9
commit 5b57b73fe8
7 changed files with 2 additions and 77 deletions

View file

@ -1,7 +1,7 @@
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))]
pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor};
pub use self::window::{Window, XWindow, WindowProxy};
pub use self::window::{Window, XWindow};
pub use self::xdisplay::{XConnection, XNotSupported, XError};
pub mod ffi;
@ -186,12 +186,6 @@ impl EventsLoop {
}
}
pub fn device_name(&self, device: DeviceId) -> String {
let devices = self.devices.lock().unwrap();
let device = devices.get(&device).unwrap();
device.name.clone()
}
fn process_event<F>(&self, xev: &mut ffi::XEvent, mut callback: F)
where F: FnMut(Event)
{