From 9c8220d04ec40d74087774c275b4d025abf3fda6 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 2 Nov 2023 15:04:52 -0400 Subject: [PATCH] Remove commented-out label code --- crates/workspace2/src/pane.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs index 4fbef2e6c1d3d95d852e147ed32aa953d06fb205..b30ec0b7f82dba2ea98d1bae2372b87805dcc170 100644 --- a/crates/workspace2/src/pane.rs +++ b/crates/workspace2/src/pane.rs @@ -1355,22 +1355,6 @@ impl Pane { cx: &mut ViewContext<'_, Pane>, ) -> impl Component { let label = item.tab_content(Some(detail), cx); - - // let label = match (self.git_status, is_deleted) { - // (_, true) | (GitStatus::Deleted, false) => Label::new(self.title.clone()) - // .color(LabelColor::Hidden) - // .set_strikethrough(true), - // (GitStatus::None, false) => Label::new(self.title.clone()), - // (GitStatus::Created, false) => { - // Label::new(self.title.clone()).color(LabelColor::Created) - // } - // (GitStatus::Modified, false) => { - // Label::new(self.title.clone()).color(LabelColor::Modified) - // } - // (GitStatus::Renamed, false) => Label::new(self.title.clone()).color(LabelColor::Accent), - // (GitStatus::Conflict, false) => Label::new(self.title.clone()), - // }; - let close_icon = || IconElement::new(Icon::Close).color(IconColor::Muted); let (tab_bg, tab_hover_bg, tab_active_bg) = match ix == self.active_item_index {