Commits

David Boddie  committed 7ab9d03

Removed old commented-out code.

  • Participants
  • Parent commits caf94e5

Comments (0)

Files changed (1)

File Impression/impression.py

         # Each of the offsets points to another table.
         
         # The first non-zero offset in the main table points to a style lookup table.
-        #style_ptr = self.offsets[1]
         style_ptr = self.offsets['styles']
         
         if self.verbose:
     def read_borders(self):
     
         # Unknown section, usually containing a Drawfile.
-        #border_ptr = self.offsets[2]
         border_ptr = self.offsets['borders']
         
         if self.verbose:
             
             else:
             
-                #amount = self.offsets[2] - border_offsets[i]
                 amount = self.offsets['mapping'] - border_offsets[i]
 
             if amount > 0:
     def read_mapping_area(self):
 
         # Read the various definitions in this section.
-        #self.file.seek(self.offsets[3])
         self.file.seek(self.offsets['mapping'])
 
         # Assume that this area contains entries containing:
 
         # Table signatures ----------
 
-        #end_addr = self.offsets[4]
         end_addr = self.offsets['content table']
 
         table_signatures = []
         self.content_index = {}
         self.content_offsets = []
 
-        #addr = self.offsets[-1]
         addr = self.offsets['content']
 
         #master = 1
     def read_content_table(self):
     
         # Content table
-        #self.file.seek(self.offsets[4]) # -4
         self.file.seek(self.offsets['content table'])
 
         if self.verbose:
         self.content_offsets = []
         
         # Read the offsets in the table, including the end of file offset at the end of the table.
-        #while self.file.tell() < self.offsets[5]:   # -3
         while self.file.tell() < self.offsets['master pages']:
     
             # Only include the offsets to items of content which aren't pointing to
 
         else:
 
-            #self.content = ContentCollection(
-            #    self.filename, content_offsets, self.offsets[-1], self.content_index
-            #    )
             self.content = ContentCollection(
                 self.filename, self.content_offsets, self.content_index, strict = self.strict
                 )
     def read_master_pages_table(self):
     
         # Page definitions
-        #start_addr = self.offsets[5]    # -3 5
-        #end_addr = self.offsets[6]      # -2 6
         start_addr = self.offsets['master pages']    # -3 5
 
         if self.offsets.has_key('end master pages'):
     def read_chapter_pages_table(self):
     
         # Page definitions
-        #start_addr = self.offsets[-2]    # -2 6
-        #end_addr = self.offsets[-1]      # -1 7
         start_addr = self.offsets['chapter pages']    # -2 6
 
         if self.offsets.has_key('end chapter pages'):