From cd20c37cdc6bf569436c51ecd6159d9f98e231c7 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 19 Feb 2019 10:59:26 -0600 Subject: [PATCH] Drop unused variable from link_program --- tools/toolchains/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index b4e33db7de..a6db920269 100755 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -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: