mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Remove some unused pub
functions (#3872)
## Summary I wrote a bad Python script to find these.
This commit is contained in:
parent
1fc6a59707
commit
cedd18e4c6
12 changed files with 3 additions and 174 deletions
|
@ -2,7 +2,6 @@
|
|||
//! [installer][`uv_installer`] and [build][`uv_build`] through [`BuildDispatch`]
|
||||
//! implementing [`BuildContext`].
|
||||
|
||||
use std::ffi::OsStr;
|
||||
use std::ffi::OsString;
|
||||
use std::path::Path;
|
||||
|
||||
|
@ -90,21 +89,6 @@ impl<'a> BuildDispatch<'a> {
|
|||
self.options = options;
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the environment variables to be used when building a source distribution.
|
||||
#[must_use]
|
||||
pub fn with_build_extra_env_vars<I, K, V>(mut self, sdist_build_env_variables: I) -> Self
|
||||
where
|
||||
I: IntoIterator<Item = (K, V)>,
|
||||
K: AsRef<OsStr>,
|
||||
V: AsRef<OsStr>,
|
||||
{
|
||||
self.build_extra_env_vars = sdist_build_env_variables
|
||||
.into_iter()
|
||||
.map(|(key, value)| (key.as_ref().to_owned(), value.as_ref().to_owned()))
|
||||
.collect();
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> BuildContext for BuildDispatch<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue