mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Remove unused code
This commit is contained in:
parent
72b3993fca
commit
612079b5bf
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user