浏览代码

Remove old syntax for custom class icon

VolTer 3 年之前
父节点
当前提交
126901cfce
共有 1 个文件被更改,包括 0 次插入11 次删除
  1. 0 11
      modules/gdscript/gdscript_parser.cpp

+ 0 - 11
modules/gdscript/gdscript_parser.cpp

@@ -686,17 +686,6 @@ void GDScriptParser::parse_class_name() {
 		current_class->identifier = parse_identifier();
 		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)) {
 	if (match(GDScriptTokenizer::Token::EXTENDS)) {
 		// Allow extends on the same line.
 		// Allow extends on the same line.
 		parse_extends();
 		parse_extends();