mirror of https://github.com/astral-sh/uv
Remove unused verbatim method (#10788)
This commit is contained in:
parent
25982929c2
commit
6b4c8a906c
|
|
@ -472,12 +472,6 @@ impl RequirementSource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Construct a [`RequirementSource`] for a URL source, given a URL parsed into components.
|
|
||||||
pub fn from_verbatim_parsed_url(parsed_url: ParsedUrl) -> Self {
|
|
||||||
let verbatim_url = VerbatimUrl::from_url(Url::from(parsed_url.clone()));
|
|
||||||
Self::from_parsed_url(parsed_url, verbatim_url)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Convert the source to a [`VerbatimParsedUrl`], if it's a URL source.
|
/// Convert the source to a [`VerbatimParsedUrl`], if it's a URL source.
|
||||||
pub fn to_verbatim_parsed_url(&self) -> Option<VerbatimParsedUrl> {
|
pub fn to_verbatim_parsed_url(&self) -> Option<VerbatimParsedUrl> {
|
||||||
match &self {
|
match &self {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue