From e5479decfaa28de6d3b7a22ec9ab0ce2a67a2e0b Mon Sep 17 00:00:00 2001 From: mo0nbase <42557632+Mo0nbase@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:31:05 -0500 Subject: [PATCH] remove unessecary compilation attributes --- plugins/dialog/src/commands.rs | 3 --- plugins/dialog/src/lib.rs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/plugins/dialog/src/commands.rs b/plugins/dialog/src/commands.rs index 728a855b..937cfabb 100644 --- a/plugins/dialog/src/commands.rs +++ b/plugins/dialog/src/commands.rs @@ -16,9 +16,7 @@ use crate::{ #[derive(Serialize)] #[serde(untagged)] pub enum OpenResponse { - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] Folders(Option>), - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] Folder(Option), Files(Option>), File(Option), @@ -133,7 +131,6 @@ pub(crate) async fn open( } if options.directory { - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] { let tauri_scope = window.state::(); diff --git a/plugins/dialog/src/lib.rs b/plugins/dialog/src/lib.rs index e489e0d6..78364f5a 100644 --- a/plugins/dialog/src/lib.rs +++ b/plugins/dialog/src/lib.rs @@ -506,7 +506,6 @@ impl FileDialogBuilder { /// Ok(()) /// }); /// ``` - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] pub fn pick_folder) + Send + 'static>(self, f: F) { pick_folder(self, f) } @@ -528,7 +527,6 @@ impl FileDialogBuilder { /// Ok(()) /// }); /// ``` - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] pub fn pick_folders>) + Send + 'static>(self, f: F) { pick_folders(self, f) } @@ -611,7 +609,6 @@ impl FileDialogBuilder { /// // the folder path is `None` if the user closed the dialog /// } /// ``` - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] pub fn blocking_pick_folder(self) -> Option { blocking_fn!(self, pick_folder) } @@ -631,7 +628,6 @@ impl FileDialogBuilder { /// // the folder paths value is `None` if the user closed the dialog /// } /// ``` - #[cfg(any(desktop, target_os = "ios", target_os = "android"))] pub fn blocking_pick_folders(self) -> Option> { blocking_fn!(self, pick_folders) }