Skip to content

Commit df63bb1

Browse files
committed
Remove no-op RequirementSet.cleanup_files
1 parent 6081b71 commit df63bb1

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

src/pip/_internal/commands/download.py

-4
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,4 @@ def run(self, options, args):
140140
if downloaded:
141141
write_output('Successfully downloaded %s', downloaded)
142142

143-
# Clean up
144-
if not options.no_clean:
145-
requirement_set.cleanup_files()
146-
147143
return requirement_set

src/pip/_internal/commands/install.py

-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ def run(self, options, args):
446446
finally:
447447
# Clean up
448448
if not options.no_clean:
449-
requirement_set.cleanup_files()
450449
wheel_cache.cleanup()
451450

452451
if options.target_dir:

src/pip/_internal/commands/wheel.py

-1
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,4 @@ def run(self, options, args):
193193
raise
194194
finally:
195195
if not options.no_clean:
196-
requirement_set.cleanup_files()
197196
wheel_cache.cleanup()

src/pip/_internal/req/req_set.py

-4
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,3 @@ def get_requirement(self, name):
198198
return self.requirements[project_name]
199199

200200
raise KeyError("No project with the name %r" % name)
201-
202-
def cleanup_files(self):
203-
# type: () -> None
204-
pass

0 commit comments

Comments
 (0)