remove is_minimized

This commit is contained in:
Junkui Zhang
2024-04-20 12:45:19 +08:00
parent 1486fe0a59
commit cfbbaeab50

View File

@@ -362,7 +362,6 @@ struct MacWindowState {
external_files_dragged: bool,
// Whether the next left-mouse click is also the focusing click.
first_mouse: bool,
minimized: bool,
maximized: bool,
maximized_restore_bounds: Bounds<DevicePixels>,
fullscreen_restore_bounds: Bounds<DevicePixels>,
@@ -448,10 +447,6 @@ impl MacWindowState {
self.maximized
}
fn is_minimized(&self) -> bool {
self.minimized
}
fn is_fullscreen(&self) -> bool {
unsafe {
let style_mask = self.native_window.styleMask();
@@ -662,7 +657,6 @@ impl MacWindow {
previous_keydown_inserted_text: None,
external_files_dragged: false,
first_mouse: false,
minimized: false,
maximized: false,
maximized_restore_bounds: Bounds::default(),
fullscreen_restore_bounds: Bounds::default(),
@@ -810,10 +804,6 @@ impl PlatformWindow for MacWindow {
self.0.as_ref().lock().is_maximized()
}
fn is_minimized(&self) -> bool {
self.0.as_ref().lock().is_minimized()
}
fn content_size(&self) -> Size<Pixels> {
self.0.as_ref().lock().content_size()
}