mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +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 @@ use std::future::Future;
|
|||
use std::path::{Path, PathBuf};
|
||||
|
||||
use anyhow::Result;
|
||||
use url::Url;
|
||||
|
||||
use distribution_types::{
|
||||
CachedDist, IndexLocations, InstalledDist, Requirement, Resolution, SourceDist,
|
||||
|
@ -134,7 +133,6 @@ pub trait SourceBuildTrait {
|
|||
pub trait InstalledPackagesProvider: Clone + Send + Sync + 'static {
|
||||
fn iter(&self) -> impl Iterator<Item = &InstalledDist>;
|
||||
fn get_packages(&self, name: &PackageName) -> Vec<&InstalledDist>;
|
||||
fn get_editables(&self, url: &Url) -> Vec<&InstalledDist>;
|
||||
}
|
||||
|
||||
/// An [`InstalledPackagesProvider`] with no packages in it.
|
||||
|
@ -149,8 +147,4 @@ impl InstalledPackagesProvider for EmptyInstalledPackages {
|
|||
fn iter(&self) -> impl Iterator<Item = &InstalledDist> {
|
||||
std::iter::empty()
|
||||
}
|
||||
|
||||
fn get_editables(&self, _url: &Url) -> Vec<&InstalledDist> {
|
||||
Vec::new()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue