From 8e129b39f876f349542cd497673eb8ade6eecbfd Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 26 Mar 2026 23:11:21 -0400 Subject: [PATCH] Remove unused sidebar label helper --- crates/sidebar/src/sidebar.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index 67c5b82b9f15906eb14091d61896a8856e7ea8ba..de51559b6de139200137351d144ad66fef1fe238 100644 --- a/crates/sidebar/src/sidebar.rs +++ b/crates/sidebar/src/sidebar.rs @@ -240,21 +240,6 @@ fn workspace_path_list(workspace: &Entity, cx: &App) -> PathList { PathList::new(&workspace.read(cx).root_paths(cx)) } -fn workspace_label_from_path_list(path_list: &PathList) -> SharedString { - let mut names = Vec::with_capacity(path_list.paths().len()); - for abs_path in path_list.paths() { - if let Some(name) = abs_path.file_name() { - names.push(name.to_string_lossy().to_string()); - } - } - if names.is_empty() { - // TODO: Can we do something better in this case? - "Empty Workspace".into() - } else { - names.join(", ").into() - } -} - fn load_collapsed_groups(kvp: &KeyValueStore) -> HashSet { kvp.scoped(SIDEBAR_COLLAPSED_GROUPS_NAMESPACE) .read(SIDEBAR_COLLAPSED_GROUPS_KEY)