Skip to content

Commit

Permalink
Remove unused RequirementSet.reqs_to_cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Feb 6, 2020
1 parent 4a93045 commit 85ab574
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/pip/_internal/legacy_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,6 @@ def _resolve_one(

req_to_install.prepared = True

# register tmp src for cleanup in case something goes wrong
requirement_set.reqs_to_cleanup.append(req_to_install)

abstract_dist = self._get_abstract_dist_for(req_to_install)

# Parse and return dependencies
Expand Down
2 changes: 0 additions & 2 deletions src/pip/_internal/req/req_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, check_supported_wheels=True):

self.unnamed_requirements = [] # type: List[InstallRequirement]
self.successfully_downloaded = [] # type: List[InstallRequirement]
self.reqs_to_cleanup = [] # type: List[InstallRequirement]

def __str__(self):
# type: () -> str
Expand Down Expand Up @@ -161,7 +160,6 @@ def add_requirement(
)
)
if does_not_satisfy_constraint:
self.reqs_to_cleanup.append(install_req)
raise InstallationError(
"Could not satisfy constraints for '{}': "
"installation from path or url cannot be "
Expand Down

0 comments on commit 85ab574

Please sign in to comment.