Browse Source

Merge pull request #109298 from HolonProduction/autocompletion-cleanup

Autocompletion: Remove duplicate code
Thaddeus Crews 2 months ago
parent
commit
1f7bf131b0
1 changed files with 0 additions and 12 deletions
  1. 0 12
      modules/gdscript/gdscript_editor.cpp

+ 0 - 12
modules/gdscript/gdscript_editor.cpp

@@ -1901,18 +1901,6 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
 		found = true;
 	} else {
 		switch (p_expression->type) {
-			case GDScriptParser::Node::LITERAL: {
-				const GDScriptParser::LiteralNode *literal = static_cast<const GDScriptParser::LiteralNode *>(p_expression);
-				r_type = _type_from_variant(literal->value, p_context);
-				found = true;
-			} break;
-			case GDScriptParser::Node::SELF: {
-				if (p_context.current_class) {
-					r_type.type = p_context.current_class->get_datatype();
-					r_type.type.is_meta_type = false;
-					found = true;
-				}
-			} break;
 			case GDScriptParser::Node::IDENTIFIER: {
 				const GDScriptParser::IdentifierNode *id = static_cast<const GDScriptParser::IdentifierNode *>(p_expression);
 				found = _guess_identifier_type(p_context, id, r_type);