Remove unused installed field from Plan (#3566)
This commit is contained in:
@@ -195,7 +195,6 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
||||
let Plan {
|
||||
cached,
|
||||
remote,
|
||||
installed: _,
|
||||
reinstalls,
|
||||
extraneous: _,
|
||||
} = Planner::with_requirements(&resolution.requirements()).build(
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -279,7 +279,6 @@ pub(crate) async fn install(
|
||||
cached,
|
||||
remote,
|
||||
reinstalls,
|
||||
installed: _,
|
||||
extraneous: _,
|
||||
} = plan;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user