remove some dead code
authorEli Bendersky <eliben@gmail.com>
Sun, 31 Mar 2013 03:34:57 +0000 (20:34 -0700)
committerEli Bendersky <eliben@gmail.com>
Sun, 31 Mar 2013 03:34:57 +0000 (20:34 -0700)
scripts/readelf.py

index 29efb7fa42944e7faecaf141fc5bfdede25b9084..8c1b0f88370cb05f30b35dbf4cd2d38ec1d00436 100755 (executable)
@@ -288,12 +288,10 @@ class ReadElf(object):
     def display_dynamic_tags(self):
         """ Display the dynamic tags contained in the file
         """
-        has_dynamic_section = False
         for section in self.elffile.iter_sections():
             if not isinstance(section, DynamicSection):
                 continue
 
-            has_relocation_sections = True
             self._emitline("\nDynamic section at offset %s contains %s entries:" % (
                 self._format_hex(section['sh_offset']),
                 section.num_tags()))