mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 22:51:08 +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
|
|
@ -86,10 +86,7 @@ public:
|
|||
TK_CF_ELIF,
|
||||
TK_CF_ELSE,
|
||||
TK_CF_FOR,
|
||||
TK_CF_DO,
|
||||
TK_CF_WHILE,
|
||||
TK_CF_SWITCH,
|
||||
TK_CF_CASE,
|
||||
TK_CF_BREAK,
|
||||
TK_CF_CONTINUE,
|
||||
TK_CF_PASS,
|
||||
|
|
@ -118,7 +115,7 @@ public:
|
|||
TK_PR_REMOTE,
|
||||
TK_PR_SYNC,
|
||||
TK_PR_MASTER,
|
||||
TK_PR_SLAVE,
|
||||
TK_PR_SLAVE, // Deprecated by TK_PR_PUPPET, to remove in 4.0
|
||||
TK_PR_PUPPET,
|
||||
TK_PR_REMOTESYNC,
|
||||
TK_PR_MASTERSYNC,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue