From cfbbaeab50c4e7ce85e140e5bbc29fe3368d71c3 Mon Sep 17 00:00:00 2001 From: Junkui Zhang <364772080@qq.com> Date: Sat, 20 Apr 2024 12:45:19 +0800 Subject: [PATCH] remove `is_minimized` --- crates/gpui/src/platform/mac/window.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index a287cbc486..e67f77db70 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -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, fullscreen_restore_bounds: Bounds, @@ -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 { self.0.as_ref().lock().content_size() }