summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 23:15:31 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 23:15:31 +0200
commite64eb120a810a15d883989973a57f242500e3962 (patch)
treec25f399a267a9a3277d3faab24aa70b41b1783ab
parentc9b3d208e1b1211c79efb0aca2ec066d168bca3d (diff)
parent126901cfce4095721b05fc7e142d722aafe6f4c1 (diff)
Merge pull request #65264 from MewPurPur/all-hail-icon-annotation
-rw-r--r--modules/gdscript/gdscript_parser.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index 6b6ad427a7..888cd782fb 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -686,17 +686,6 @@ void GDScriptParser::parse_class_name() {
current_class->identifier = parse_identifier();
}
- // TODO: Move this to annotation
- if (match(GDScriptTokenizer::Token::COMMA)) {
- // Icon path.
- if (consume(GDScriptTokenizer::Token::LITERAL, R"(Expected class icon path string after ",".)")) {
- if (previous.literal.get_type() != Variant::STRING) {
- push_error(vformat(R"(Only strings can be used for the class icon path, found "%s" instead.)", Variant::get_type_name(previous.literal.get_type())));
- }
- current_class->icon_path = previous.literal;
- }
- }
-
if (match(GDScriptTokenizer::Token::EXTENDS)) {
// Allow extends on the same line.
parse_extends();