mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Remove support for renamed dev/platforms
This commit is contained in:
@ -168,8 +168,6 @@ class EnvironmentProcessor(object):
|
|||||||
"board_flash_mode": "board_build.flash_mode"
|
"board_flash_mode": "board_build.flash_mode"
|
||||||
}
|
}
|
||||||
|
|
||||||
RENAMED_PLATFORMS = {"espressif": "espressif8266"}
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, # pylint: disable=R0913
|
self, # pylint: disable=R0913
|
||||||
cmd_ctx,
|
cmd_ctx,
|
||||||
@ -231,14 +229,6 @@ class EnvironmentProcessor(object):
|
|||||||
"`%s` instead." % (k, self.RENAMED_OPTIONS[k]),
|
"`%s` instead." % (k, self.RENAMED_OPTIONS[k]),
|
||||||
fg="yellow")
|
fg="yellow")
|
||||||
k = self.RENAMED_OPTIONS[k]
|
k = self.RENAMED_OPTIONS[k]
|
||||||
# process renamed platforms
|
|
||||||
if k == "platform" and v in self.RENAMED_PLATFORMS:
|
|
||||||
click.secho(
|
|
||||||
"Warning! Platform `%s` is deprecated and will be "
|
|
||||||
"removed in the next release! Please use "
|
|
||||||
"`%s` instead." % (v, self.RENAMED_PLATFORMS[v]),
|
|
||||||
fg="yellow")
|
|
||||||
v = self.RENAMED_PLATFORMS[v]
|
|
||||||
|
|
||||||
# warn about unknown options
|
# warn about unknown options
|
||||||
unknown_conditions = [
|
unknown_conditions = [
|
||||||
|
Reference in New Issue
Block a user