Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Remove unused resolve_window_ids function

Richie McIlroy85ef4a1cbc75
diff --git a/apps/desktop/src-tauri/src/window_exclusion.rs b/apps/desktop/src-tauri/src/window_exclusion.rs
index 09c688502..70f473041 100644
--- a/apps/desktop/src-tauri/src/window_exclusion.rs
+++ b/apps/desktop/src-tauri/src/window_exclusion.rs
@@ -61,34 +61,3 @@ impl WindowExclusion {
false
}
}
-
-pub fn resolve_window_ids(exclusions: &[WindowExclusion]) -> Vec<WindowId> {
- if exclusions.is_empty() {
- return Vec::new();
- }
-
- Window::list()
- .into_iter()
- .filter_map(|window| {
- let owner_name = window.owner_name();
- let window_title = window.name();
-
- #[cfg(target_os = "macos")]
- let bundle_identifier = window.raw_handle().bundle_identifier();
-
- #[cfg(not(target_os = "macos"))]
- let bundle_identifier = None::<&str>;
-
- exclusions
- .iter()
- .find(|entry| {
- entry.matches(
- bundle_identifier.as_deref(),
- owner_name.as_deref(),
- window_title.as_deref(),
- )
- })
- .map(|_| window.id())
- })
- .collect()
-}