mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Remove duplicate code
This commit is contained in:
@ -190,12 +190,6 @@ def _mbed_whole_archive_hook(flags):
|
|||||||
return 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")
|
board_type = env.subst("$BOARD")
|
||||||
variant = MBED_VARIANTS[
|
variant = MBED_VARIANTS[
|
||||||
board_type] if board_type in MBED_VARIANTS else board_type.upper()
|
board_type] if board_type in MBED_VARIANTS else board_type.upper()
|
||||||
|
Reference in New Issue
Block a user