Remove unused code in X11 backend. (#1416)

Signed-off-by: Freya Gentz <zegentzy@protonmail.com>
This commit is contained in:
Freya Gentz 2020-01-23 12:42:15 -07:00 committed by GitHub
parent 0ae78db6cb
commit 8856b6ecb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 2 additions and 180 deletions

View file

@ -489,21 +489,9 @@ impl<'a> Deref for DeviceInfo<'a> {
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct WindowId(ffi::Window);
impl WindowId {
pub unsafe fn dummy() -> Self {
WindowId(0)
}
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct DeviceId(c_int);
impl DeviceId {
pub unsafe fn dummy() -> Self {
DeviceId(0)
}
}
pub struct Window(Arc<UnownedWindow>);
impl Deref for Window {