Skip to content

Commit 4a93045

Browse files
committed
Remove no-op RequirementSet.cleanup_files
1 parent 5cca8f1 commit 4a93045

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
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

-4
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,6 @@ def run(self, options, args):
443443
except PreviousBuildDirError:
444444
options.no_clean = True
445445
raise
446-
finally:
447-
# Clean up
448-
if not options.no_clean:
449-
requirement_set.cleanup_files()
450446

451447
if options.target_dir:
452448
self._handle_target_dir(

src/pip/_internal/commands/wheel.py

-3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,3 @@ def run(self, options, args):
191191
except PreviousBuildDirError:
192192
options.no_clean = True
193193
raise
194-
finally:
195-
if not options.no_clean:
196-
requirement_set.cleanup_files()

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)