Remove unused verbatim method (#10788)

This commit is contained in:
Charlie Marsh 2025-01-20 15:43:16 -05:00 committed by GitHub
parent 25982929c2
commit 6b4c8a906c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.
pub fn to_verbatim_parsed_url(&self) -> Option<VerbatimParsedUrl> {
match &self {