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

@ -59,7 +59,6 @@ pub enum DeviceId {
pub enum MonitorId {
X(x11::MonitorId),
Wayland(wayland::MonitorId),
None,
}
impl MonitorId {
@ -68,7 +67,6 @@ impl MonitorId {
match self {
&MonitorId::X(ref m) => m.get_name(),
&MonitorId::Wayland(ref m) => m.get_name(),
&MonitorId::None => None,
}
}
@ -77,7 +75,6 @@ impl MonitorId {
match self {
&MonitorId::X(ref m) => m.get_native_identifier(),
&MonitorId::Wayland(ref m) => m.get_native_identifier(),
&MonitorId::None => unimplemented!() // FIXME:
}
}
@ -86,7 +83,6 @@ impl MonitorId {
match self {
&MonitorId::X(ref m) => m.get_dimensions(),
&MonitorId::Wayland(ref m) => m.get_dimensions(),
&MonitorId::None => (800, 600), // FIXME:
}
}
}