From d35003d92ae97c515b6fd2c319df2d7a8f14e28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 19 Feb 2019 08:55:04 +0100 Subject: 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. --- modules/gdscript/gdscript_compiler.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'modules/gdscript/gdscript_compiler.cpp') diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index e59b57b39a..d256918b22 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -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: { -- cgit v1.2.3