From 612079b5bf66277491e10d7ffbbb7554ef54e318 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 16 Oct 2020 19:38:17 +0530 Subject: [PATCH] Remove unused code --- src/calibre/utils/zipfile.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/calibre/utils/zipfile.py b/src/calibre/utils/zipfile.py index 0435e35646..c80e5680de 100644 --- a/src/calibre/utils/zipfile.py +++ b/src/calibre/utils/zipfile.py @@ -748,7 +748,6 @@ class ZipFile: self.debug = 0 # Level of printing: 0 through 3 self.NameToInfo = {} # Find file info given name self.filelist = [] # List of ZipInfo instances for archive - self.extract_mapping = {} self.compression = compression # Method of compression self.mode = key = mode.replace('b', '')[0] self.pwd = None @@ -1160,7 +1159,6 @@ class ZipFile: except Exception: # Added by Kovid targetpath = os.path.join(base_target, sanitize_file_name(fname)) os.mkdir(targetpath) - self.extract_mapping[member.filename] = targetpath return targetpath if not os.path.exists(targetpath): @@ -1184,7 +1182,6 @@ class ZipFile: os.utime(targetpath, (mtime, mtime)) except: pass - self.extract_mapping[member.filename] = targetpath return targetpath def _writecheck(self, zinfo):