Remove cleanup_tempfiles altogether because they are not being used

This commit is contained in:
Micah Lee 2022-02-13 10:40:55 -08:00
parent 5d6e4ecd01
commit 31bf763baa
3 changed files with 0 additions and 13 deletions

View file

@ -171,7 +171,6 @@ class Web:
self.socketio.init_app(self.app)
self.chat_mode = ChatModeWeb(self.common, self)
self.cleanup_tempfiles = []
self.cleanup_tempdirs = []
def get_mode(self):
@ -405,13 +404,8 @@ class Web:
"""
self.common.log("Web", "cleanup")
# Close all of the tempfile.NamedTemporaryFile
for file in self.cleanup_tempfiles:
file.close()
# Clean up the tempfile.NamedTemporaryDirectory objects
for dir in self.cleanup_tempdirs:
dir.cleanup()
self.cleanup_tempfiles = []
self.cleanup_tempdirs = []