Skip to content

Commit

Permalink
Remove no-op RequirementSet.cleanup_files
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Feb 6, 2020
1 parent 5cca8f1 commit 4a93045
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/pip/_internal/commands/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,4 @@ def run(self, options, args):
if downloaded:
write_output('Successfully downloaded %s', downloaded)

# Clean up
if not options.no_clean:
requirement_set.cleanup_files()

return requirement_set
4 changes: 0 additions & 4 deletions src/pip/_internal/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,6 @@ def run(self, options, args):
except PreviousBuildDirError:
options.no_clean = True
raise
finally:
# Clean up
if not options.no_clean:
requirement_set.cleanup_files()

if options.target_dir:
self._handle_target_dir(
Expand Down
3 changes: 0 additions & 3 deletions src/pip/_internal/commands/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,3 @@ def run(self, options, args):
except PreviousBuildDirError:
options.no_clean = True
raise
finally:
if not options.no_clean:
requirement_set.cleanup_files()
4 changes: 0 additions & 4 deletions src/pip/_internal/req/req_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,3 @@ def get_requirement(self, name):
return self.requirements[project_name]

raise KeyError("No project with the name %r" % name)

def cleanup_files(self):
# type: () -> None
pass

0 comments on commit 4a93045

Please sign in to comment.