diff --git a/crates/collab_ui/src/notification_panel.rs b/crates/collab_ui/src/notification_panel.rs index 93300f55d862f710d576a18152424830ce9746f2..e6d1ecd9471339d6d4014b04433e9824ebe0fd4e 100644 --- a/crates/collab_ui/src/notification_panel.rs +++ b/crates/collab_ui/src/notification_panel.rs @@ -676,15 +676,6 @@ impl Panel for NotificationPanel { "Notification Panel" } - fn icon_label(&self, _window: &Window, cx: &App) -> Option { - let count = self.notification_store.read(cx).unread_notification_count(); - if count == 0 { - None - } else { - Some(count.to_string()) - } - } - fn toggle_action(&self) -> Box { Box::new(ToggleFocus) } diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rs index 27d532c3d67c04bbe09830b79da6b5abaef5cc29..23b9aee7e159fcf9e9245c000c5a3bf8d69cbc71 100644 --- a/crates/terminal_view/src/terminal_panel.rs +++ b/crates/terminal_view/src/terminal_panel.rs @@ -1605,20 +1605,6 @@ impl Panel for TerminalPanel { }) } - fn icon_label(&self, _window: &Window, cx: &App) -> Option { - let count = self - .center - .panes() - .into_iter() - .map(|pane| pane.read(cx).items_len()) - .sum::(); - if count == 0 { - None - } else { - Some(count.to_string()) - } - } - fn persistent_name() -> &'static str { "TerminalPanel" } diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs index 62c63a664dae08fbda3291dd9b63d2c94a518efb..7d83cbd26d9c55206202e91fc5ab81053e758df2 100644 --- a/crates/workspace/src/dock.rs +++ b/crates/workspace/src/dock.rs @@ -38,9 +38,6 @@ pub trait Panel: Focusable + EventEmitter + Render + Sized { fn icon(&self, window: &Window, cx: &App) -> Option; fn icon_tooltip(&self, window: &Window, cx: &App) -> &'static str; fn toggle_action(&self) -> Box; - fn icon_label(&self, _window: &Window, _: &App) -> Option { - None - } fn is_zoomed(&self, _window: &Window, _cx: &App) -> bool { false } @@ -78,7 +75,6 @@ pub trait PanelHandle: Send + Sync { fn icon(&self, window: &Window, cx: &App) -> Option; fn icon_tooltip(&self, window: &Window, cx: &App) -> &'static str; fn toggle_action(&self, window: &Window, cx: &App) -> Box; - fn icon_label(&self, window: &Window, cx: &App) -> Option; fn panel_focus_handle(&self, cx: &App) -> FocusHandle; fn to_any(&self) -> AnyView; fn activation_priority(&self, cx: &App) -> u32; @@ -168,10 +164,6 @@ where self.read(cx).toggle_action() } - fn icon_label(&self, window: &Window, cx: &App) -> Option { - self.read(cx).icon_label(window, cx) - } - fn to_any(&self) -> AnyView { self.clone().into() }