10011: minor: remove dead code r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2021-08-24 11:39:49 +00:00 committed by GitHub
commit 68279e3253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -354,15 +354,6 @@ impl CargoWorkspace {
CargoWorkspace { packages, targets, workspace_root }
}
pub fn from_cargo_metadata3(
cargo_toml: &ManifestPath,
config: &CargoConfig,
progress: &dyn Fn(String),
) -> Result<CargoWorkspace> {
let meta = CargoWorkspace::fetch_metadata(cargo_toml, config, progress)?;
Ok(CargoWorkspace::new(meta))
}
pub fn packages<'a>(&'a self) -> impl Iterator<Item = Package> + ExactSizeIterator + 'a {
self.packages.iter().map(|(id, _pkg)| id)
}