mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
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.
This commit is contained in:
parent
29fd942dd6
commit
d35003d92a
5 changed files with 1 additions and 20 deletions
|
@ -1507,9 +1507,6 @@ Error GDScriptCompiler::_parse_block(CodeGen &codegen, const GDScriptParser::Blo
|
|||
|
||||
codegen.opcodes.write[break_addr + 1] = codegen.opcodes.size();
|
||||
|
||||
} break;
|
||||
case GDScriptParser::ControlFlowNode::CF_SWITCH: {
|
||||
|
||||
} break;
|
||||
case GDScriptParser::ControlFlowNode::CF_BREAK: {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue