GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
refactor: remove unused `focus_mode` getter
Lars Berger0b5f85d4395a
diff --git a/packages/wm/src/common/focus_mode.rs b/packages/wm/src/common/focus_mode.rsdeleted file mode 100644index 90a2e62c..00000000--- a/packages/wm/src/common/focus_mode.rs+++ /dev/null@@ -1,5 +0,0 @@-#[derive(Clone, Debug, PartialEq)]-pub enum FocusMode {- Tiling,- Floating,-}diff --git a/packages/wm/src/common/mod.rs b/packages/wm/src/common/mod.rsindex 4c160b6d..0a0fc6a5 100644--- a/packages/wm/src/common/mod.rs+++ b/packages/wm/src/common/mod.rs@@ -2,7 +2,6 @@ pub mod commands;mod direction;mod display_state;pub mod events;-mod focus_mode;pub mod platform;mod point;mod rect;@@ -14,7 +13,6 @@ mod vec_deque_ext;pub use direction::*;pub use display_state::*;-pub use focus_mode::*;pub use point::*;pub use rect::*;pub use rect_delta::*;diff --git a/packages/wm/src/wm_state.rs b/packages/wm/src/wm_state.rsindex 1f0c05df..7ef6a9b1 100644--- a/packages/wm/src/wm_state.rs+++ b/packages/wm/src/wm_state.rs@@ -9,7 +9,6 @@ use crate::{common::{commands::sync_native_focus,platform::{NativeMonitor, NativeWindow, Platform},- FocusMode,},containers::{commands::{redraw, set_focused_descendant},@@ -198,14 +197,6 @@ impl WmState {self.root_container.last_focused_descendant()}- /// Whether a tiling or floating container is currently focused.- pub fn focus_mode(&self) -> Option<FocusMode> {- self.focused_container().map(|c| match c {- Container::NonTilingWindow(_) => FocusMode::Floating,- _ => FocusMode::Tiling,- })- }-pub fn emit_event(&self, event: WmEvent) {if let Err(err) = self.event_tx.send(event) {warn!("Failed to send event: {}", err);