Get rid of FullScreenState::get_monitor()
This commit is contained in:
parent
b3ef9c8b22
commit
60b575a7c1
5 changed files with 13 additions and 19 deletions
10
src/lib.rs
10
src/lib.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue