Get rid of FullScreenState::get_monitor()

This commit is contained in:
Pedro Côrte-Real 2017-08-29 02:08:12 +01:00
parent b3ef9c8b22
commit 60b575a7c1
5 changed files with 13 additions and 19 deletions

View file

@ -364,16 +364,6 @@ pub enum FullScreenState {
Exclusive(MonitorId),
}
impl FullScreenState {
pub fn get_monitor(&self) -> Option<platform::MonitorId> {
if let FullScreenState::Exclusive(ref monitor) = *self {
Some(monitor.0.clone())
} else {
None
}
}
}
/// Describes how winit handles the cursor.
#[derive(Debug, Copy, Clone, PartialEq)]
pub enum CursorState {