Remove unneeded class methods
authorMichael Petch <mpetch@capp-sysware.com>
Thu, 2 Jan 2014 00:11:55 +0000 (17:11 -0700)
committerMichael Petch <mpetch@capp-sysware.com>
Thu, 2 Jan 2014 00:11:55 +0000 (17:11 -0700)
xgzarc.py

index 2541994..3ddf8c3 100644 (file)
--- a/xgzarc.py
+++ b/xgzarc.py
@@ -72,13 +72,6 @@ class ArchiveRecord(dict):
         self.compressedregistry = bool(unpacked_data[5])
         self.reserved = unpacked_data[6:]
 
-    def todict(self):
-        return {'crc': self.crc, 'filecount': self.filecount,
-                'version': self.version, 'registrysize': self.registrysize,
-                'archivesize': self.archivesize,
-                'compressedregistry': self.compressedregistry,
-                'reserved': self.reserved}
-
 
 class FileRecord(dict):
 
@@ -119,12 +112,6 @@ class FileRecord(dict):
     def __str__(self):
         return str(self.todict())
 
-    def todict(self):
-        return {'name': self.name, 'path': self.path, 'osize': self.osize,
-                'csize': self.csize, 'start': self.start, 'crc': self.crc,
-                'compressed': self.compressed, 'stored': self.stored,
-                'compressionlevel': self.compressionlevel}
-
 
 class ZlibArchive(object):
     __MAXBUFSIZE = 32768