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)