Drop unused variable from link_program

pull/9738/head
Jimmy Brisson 2019-02-19 10:59:26 -06:00
parent 3353722d36
commit cd20c37cdc
1 changed files with 0 additions and 3 deletions

View File

@ -633,7 +633,6 @@ class mbedToolchain:
return res, None
def link_program(self, r, tmp_path, name):
needed_update = False
ext = getattr(self.target, "OUTPUT_EXT", "bin")
if hasattr(self.target, 'OUTPUT_NAMING'):
@ -675,7 +674,6 @@ class mbedToolchain:
if exists(old_mapfile):
remove(old_mapfile)
rename(mapfile, old_mapfile)
needed_update = True
self.progress("link", name)
self.link(elf, objects, libraries, lib_dirs, linker_script)
@ -686,7 +684,6 @@ class mbedToolchain:
filename = "{}.{}".format(name, ext)
full_path = join(tmp_path, filename)
if full_path and self.need_update(full_path, [elf]):
needed_update = True
self.progress("elf2bin", name)
self.binary(r, elf, full_path)
if self.config.has_regions: