Skip to content

Commit 898df72

Browse files
committed
Use public module
1 parent 318944f commit 898df72

3 files changed

Lines changed: 2 additions & 13 deletions

File tree

src/app/tile.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use crate::app::{
1010
use crate::clipboard::ClipBoardContentType;
1111
use crate::config::Config;
1212
use crate::debounce::Debouncer;
13-
use crate::platform::{default_app_paths, icon_of_path_ns};
13+
use crate::platform::default_app_paths;
14+
use crate::platform::macos::discovery::icon_of_path_ns;
1415

1516
use arboard::Clipboard;
1617
use block2::RcBlock;

src/platform/macos/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pub mod haptics;
55
use iced::wgpu::rwh::WindowHandle;
66

77
pub(super) use self::discovery::get_installed_apps;
8-
pub(super) use self::discovery::icon_of_path_ns;
98
pub(super) use self::haptics::perform_haptic;
109

1110
/// This sets the activation policy of the app to Accessory, allowing rustcast to be visible ontop

src/platform/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,3 @@ pub fn get_installed_apps(store_icons: bool) -> Vec<App> {
5656
pub fn get_installed_apps(store_icons: bool) -> Vec<App> {
5757
self::cross::get_installed_apps(store_icons)
5858
}
59-
60-
/// This loads the system icon for a file path, returning PNG bytes
61-
#[cfg(target_os = "macos")]
62-
pub fn icon_of_path_ns(path: &str) -> Option<Vec<u8>> {
63-
self::macos::icon_of_path_ns(path)
64-
}
65-
66-
#[cfg(not(target_os = "macos"))]
67-
pub fn icon_of_path_ns(_path: &str) -> Option<Vec<u8>> {
68-
None
69-
}

0 commit comments

Comments
 (0)