diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-19 08:55:04 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-20 14:05:08 +0100 |
commit | d35003d92ae97c515b6fd2c319df2d7a8f14e28d (patch) | |
tree | f13dada500a6335702cc55948939c5b0871176af /main | |
parent | 29fd942dd6e6851014da8d3da9a7fcdca2921781 (diff) | |
download | redot-engine-d35003d92ae97c515b6fd2c319df2d7a8f14e28d.tar.gz |
GDScript: Remove unused `switch`, `case` and `do` CF keywords
They had been reserved for future implementation, but we now have the
`match` CF keyword which does the same and more.
According to @reduz `do` was even added by mistake when copying from
the shader language parser, it was never intended to add support for
`do`... `while` loops, as the syntax would be awkward in GDScript,
and the added sugar is not worth it.
Fixes #25787.
Diffstat (limited to 'main')
-rw-r--r-- | main/tests/test_gdscript.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/main/tests/test_gdscript.cpp b/main/tests/test_gdscript.cpp index 27ff2addf3..b0b7fc8357 100644 --- a/main/tests/test_gdscript.cpp +++ b/main/tests/test_gdscript.cpp @@ -360,9 +360,6 @@ static void _parser_show_block(const GDScriptParser::BlockNode *p_block, int p_i case GDScriptParser::ControlFlowNode::CF_MATCH: { // FIXME: Implement } break; - case GDScriptParser::ControlFlowNode::CF_SWITCH: { - - } break; case GDScriptParser::ControlFlowNode::CF_CONTINUE: { _print_indent(p_indent, "continue"); |