Skip to content

Commit cd20c37

Browse files
committed
Drop unused variable from link_program
1 parent 3353722 commit cd20c37

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/toolchains/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,6 @@ def _do_region_merge(self, name, binary, ext):
633633
return res, None
634634

635635
def link_program(self, r, tmp_path, name):
636-
needed_update = False
637636
ext = getattr(self.target, "OUTPUT_EXT", "bin")
638637

639638
if hasattr(self.target, 'OUTPUT_NAMING'):
@@ -675,7 +674,6 @@ def link_program(self, r, tmp_path, name):
675674
if exists(old_mapfile):
676675
remove(old_mapfile)
677676
rename(mapfile, old_mapfile)
678-
needed_update = True
679677
self.progress("link", name)
680678
self.link(elf, objects, libraries, lib_dirs, linker_script)
681679

@@ -686,7 +684,6 @@ def link_program(self, r, tmp_path, name):
686684
filename = "{}.{}".format(name, ext)
687685
full_path = join(tmp_path, filename)
688686
if full_path and self.need_update(full_path, [elf]):
689-
needed_update = True
690687
self.progress("elf2bin", name)
691688
self.binary(r, elf, full_path)
692689
if self.config.has_regions:

0 commit comments

Comments
 (0)