Change summary
crates/collab_ui/src/notification_panel.rs | 9 ---------
crates/terminal_view/src/terminal_panel.rs | 14 --------------
crates/workspace/src/dock.rs | 4 ----
3 files changed, 27 deletions(-)
Detailed changes
@@ -676,15 +676,6 @@ impl Panel for NotificationPanel {
"Notification Panel"
}
- fn icon_label(&self, _window: &Window, cx: &App) -> Option<String> {
- let count = self.notification_store.read(cx).unread_notification_count();
- if count == 0 {
- None
- } else {
- Some(count.to_string())
- }
- }
-
fn toggle_action(&self) -> Box<dyn gpui::Action> {
Box::new(ToggleFocus)
}
@@ -1605,20 +1605,6 @@ impl Panel for TerminalPanel {
})
}
- fn icon_label(&self, _window: &Window, cx: &App) -> Option<String> {
- let count = self
- .center
- .panes()
- .into_iter()
- .map(|pane| pane.read(cx).items_len())
- .sum::<usize>();
- if count == 0 {
- None
- } else {
- Some(count.to_string())
- }
- }
-
fn persistent_name() -> &'static str {
"TerminalPanel"
}
@@ -37,10 +37,6 @@ pub trait Panel: Focusable + EventEmitter<PanelEvent> + Render + Sized {
fn icon(&self, window: &Window, cx: &App) -> Option<ui::IconName>;
fn icon_tooltip(&self, window: &Window, cx: &App) -> &'static str;
fn toggle_action(&self) -> Box<dyn Action>;
- fn icon_label(&self, _window: &Window, _: &App) -> Option<String> {
- None
- }
-
fn is_zoomed(&self, _window: &Window, _cx: &App) -> bool {
false
}