Remove some unused pub functions (#3872)

## Summary

I wrote a bad Python script to find these.
This commit is contained in:
Charlie Marsh 2024-05-28 11:58:13 -04:00 committed by GitHub
parent 1fc6a59707
commit cedd18e4c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 3 additions and 174 deletions

View file

@ -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()
}
}