summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorVolTer <mew.pur.pur@abv.bg>2022-09-02 22:06:47 +0200
committerVolTer <mew.pur.pur@abv.bg>2022-09-02 22:06:47 +0200
commit126901cfce4095721b05fc7e142d722aafe6f4c1 (patch)
treeddbe04ef62e75ec1ebef2e26d072b447cd44a718 /modules
parent8c7be63588bf3e4ef4b780ff57936c68db5939c7 (diff)
Remove old syntax for custom class icon
Diffstat (limited to 'modules')
-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();