Skip to content

Commit d11c399

Browse files
committed
fix warning
1 parent a0a6cd5 commit d11c399

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

ui/src/icon.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ use cosmic::{
44
widget::{self, Icon, IconButton, icon::Handle},
55
};
66

7-
use crate::icon_handle;
8-
97
pub static ICON_LENGTH: Length = Length::Fixed(25.0);
108

119
#[macro_export]
@@ -63,14 +61,14 @@ pub fn icon_button_from_handle<'a, M>(handle: Handle) -> IconButton<'a, M> {
6361
cosmic::widget::button::icon(handle)
6462
}
6563

66-
#[allow(dead_code)]
67-
pub fn expand_icon<'a, M>(expanded: bool) -> IconButton<'a, M> {
68-
if expanded {
69-
icon_button!("expand_less/24")
70-
} else {
71-
icon_button!("expand_more/24")
72-
}
73-
}
64+
// #[allow(dead_code)]
65+
// pub fn expand_icon<'a, M>(expanded: bool) -> IconButton<'a, M> {
66+
// if expanded {
67+
// icon_button!("expand_less/24")
68+
// } else {
69+
// icon_button!("expand_more/24")
70+
// }
71+
// }
7472

7573
pub fn window_icon() -> Option<iced::window::Icon> {
7674
let svg = include_bytes!("../../res/linux/app_icon.svg");

ui/src/tray.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ use tray_icon::{
1111
menu::{Menu, MenuEvent, MenuItem, PredefinedMenuItem},
1212
};
1313

14-
use crate::fl;
15-
1614
#[derive(Debug, Clone)]
1715
pub enum SystemTrayMsg {
1816
Show,

0 commit comments

Comments
 (0)