Remove unused installed field from Plan (#3566)

This commit is contained in:
Charlie Marsh
2024-05-13 21:53:48 -04:00
committed by GitHub
parent b263fcff9c
commit 66eea7a5fb
5 changed files with 0 additions and 12 deletions
-1
View File
@@ -195,7 +195,6 @@ impl<'a> BuildContext for BuildDispatch<'a> {
let Plan {
cached,
remote,
installed: _,
reinstalls,
extraneous: _,
} = Planner::with_requirements(&resolution.requirements()).build(
-7
View File
@@ -84,7 +84,6 @@ impl<'a> Planner<'a> {
let mut cached = vec![];
let mut remote = vec![];
let mut reinstalls = vec![];
let mut installed = vec![];
let mut extraneous = vec![];
let mut seen = FxHashMap::with_capacity_and_hasher(
self.requirements.len(),
@@ -191,7 +190,6 @@ impl<'a> Planner<'a> {
RequirementSatisfaction::Mismatch => {}
RequirementSatisfaction::Satisfied => {
debug!("Requirement already installed: {distribution}");
installed.push(distribution.clone());
continue;
}
RequirementSatisfaction::OutOfDate => {
@@ -474,7 +472,6 @@ impl<'a> Planner<'a> {
Ok(Plan {
cached,
installed,
remote,
reinstalls,
extraneous,
@@ -496,10 +493,6 @@ pub struct Plan {
/// available in the local cache.
pub cached: Vec<CachedDist>,
/// Any distributions that are already installed in the current environment, and can be used
/// to satisfy the requirements.
pub installed: Vec<InstalledDist>,
/// The distributions that are not already installed in the current environment, and are
/// not available in the local cache.
pub remote: Vec<Requirement>,
-2
View File
@@ -863,7 +863,6 @@ async fn install(
cached,
remote,
reinstalls,
installed: _,
extraneous: _,
} = plan;
@@ -1032,7 +1031,6 @@ async fn install(
cached,
remote,
reinstalls,
installed: _,
extraneous: _,
} = plan;
-1
View File
@@ -321,7 +321,6 @@ pub(crate) async fn pip_sync(
cached,
remote,
reinstalls,
installed: _,
extraneous,
} = Planner::with_requirements(&requirements)
.with_editable_requirements(&resolved_editables.editables)
-1
View File
@@ -279,7 +279,6 @@ pub(crate) async fn install(
cached,
remote,
reinstalls,
installed: _,
extraneous: _,
} = plan;