mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Remove unused dummy
method (#4001)
This commit is contained in:
parent
b27d36baee
commit
037e7e345c
1 changed files with 0 additions and 26 deletions
|
@ -611,32 +611,6 @@ impl ProjectWorkspace {
|
||||||
workspace,
|
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.
|
/// Find the workspace root above the current project, if any.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue