diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs index f8c68e640a..a435a15130 100644 --- a/crates/collab_ui/src/collab_titlebar_item.rs +++ b/crates/collab_ui/src/collab_titlebar_item.rs @@ -17,7 +17,7 @@ use gpui::{ AppContext, Entity, ImageData, LayoutContext, ModelHandle, SceneBuilder, Subscription, View, ViewContext, ViewHandle, WeakViewHandle, }; -use project::{Project, Worktree}; +use project::Project; use settings::Settings; use std::{ops::Range, sync::Arc}; use theme::{AvatarStyle, Theme}; @@ -168,34 +168,6 @@ impl CollabTitlebarItem { } } - fn root_name_with_branch( - &self, - worktree: &ModelHandle, - cx: &ViewContext, - ) -> (String, String) { - let name = worktree.read(cx).root_name(); - let branch = worktree - .read(cx) - .snapshot() - .root_git_entry() - .and_then(|entry| entry.branch()) - .map(|branch| branch.to_string()) - .unwrap_or_else(|| "".to_owned()); - (name.to_owned(), branch) - } - - fn collect_root_names_with_branches( - &self, - project: &Project, - cx: &ViewContext, - ) -> Vec<(String, String)> { - let root_names_with_branches: Vec<(String, String)> = project - .visible_worktrees(cx) - .map(|worktree| self.root_name_with_branch(&worktree, cx)) - .collect(); - root_names_with_branches - } - fn collect_title_root_names(&self, project: &Project, cx: &ViewContext) -> String { let decorated_root_names: Vec<&str> = project.worktree_root_names(cx).collect(); if decorated_root_names.is_empty() {