From: Eli Bendersky Date: Sun, 31 Mar 2013 03:34:57 +0000 (-0700) Subject: remove some dead code X-Git-Tag: v0.21~16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4eb19ad250db33b895378c9b2937af00b23a8ab0;p=pyelftools.git remove some dead code --- diff --git a/scripts/readelf.py b/scripts/readelf.py index 29efb7f..8c1b0f8 100755 --- a/scripts/readelf.py +++ b/scripts/readelf.py @@ -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()))