From 037e7e345cd6f6ac6478392ea3f5cd5db98bbfec Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 3 Jun 2024 18:28:45 -0400 Subject: [PATCH] Remove unused `dummy` method (#4001) --- crates/uv-distribution/src/workspace.rs | 26 ------------------------- 1 file changed, 26 deletions(-) diff --git a/crates/uv-distribution/src/workspace.rs b/crates/uv-distribution/src/workspace.rs index c91f96360..cfeb016d0 100644 --- a/crates/uv-distribution/src/workspace.rs +++ b/crates/uv-distribution/src/workspace.rs @@ -611,32 +611,6 @@ impl ProjectWorkspace { workspace, }) } - - /// Used in tests. - pub fn dummy(root: &Path, project_name: &PackageName) -> Self { - // This doesn't necessarily match the exact test case, but we don't use the other fields - // for the test cases atm. - let root_member = WorkspaceMember { - root: root.to_path_buf(), - pyproject_toml: PyProjectToml { - project: Some(crate::pyproject::Project { - name: project_name.clone(), - optional_dependencies: None, - }), - tool: None, - }, - }; - Self { - project_root: root.to_path_buf(), - project_name: project_name.clone(), - extras: Vec::new(), - workspace: Workspace { - root: root.to_path_buf(), - packages: [(project_name.clone(), root_member)].into_iter().collect(), - sources: BTreeMap::default(), - }, - } - } } /// Find the workspace root above the current project, if any.