Remove duplicate code

This commit is contained in:
Ivan Kravets
2015-05-14 17:49:08 +02:00
parent 4ce09f1d43
commit 84795fb9f4

View File

@ -190,12 +190,6 @@ def _mbed_whole_archive_hook(flags):
return flags
env.Replace(
_mbed_whole_archive_hook=_mbed_whole_archive_hook,
_LIBFLAGS="${_mbed_whole_archive_hook(%s)}" % env.get("_LIBFLAGS")[2:-1]
)
board_type = env.subst("$BOARD")
variant = MBED_VARIANTS[
board_type] if board_type in MBED_VARIANTS else board_type.upper()