mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
[GDScript] Clean up some unused code
This commit is contained in:
parent
658e97c93a
commit
c070c12ddd
2 changed files with 3 additions and 9 deletions
|
|
@ -250,7 +250,7 @@ static bool _can_use_validate_call(const MethodBind *p_method, const Vector<GDSc
|
|||
return true;
|
||||
}
|
||||
|
||||
GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &codegen, Error &r_error, const GDScriptParser::ExpressionNode *p_expression, bool p_root, bool p_initializer, const GDScriptCodeGenerator::Address &p_index_addr) {
|
||||
GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &codegen, Error &r_error, const GDScriptParser::ExpressionNode *p_expression, bool p_root, bool p_initializer) {
|
||||
if (p_expression->is_constant && !(p_expression->get_datatype().is_meta_type && p_expression->get_datatype().kind == GDScriptParser::DataType::CLASS)) {
|
||||
return codegen.add_constant(p_expression->reduced_value);
|
||||
}
|
||||
|
|
@ -781,9 +781,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
|
|||
bool named = subscript->is_attribute;
|
||||
StringName name;
|
||||
GDScriptCodeGenerator::Address index;
|
||||
if (p_index_addr.mode != GDScriptCodeGenerator::Address::NIL) {
|
||||
index = p_index_addr;
|
||||
} else if (subscript->is_attribute) {
|
||||
if (subscript->is_attribute) {
|
||||
if (subscript->base->type == GDScriptParser::Node::SELF && codegen.script) {
|
||||
GDScriptParser::IdentifierNode *identifier = subscript->attribute;
|
||||
HashMap<StringName, GDScript::MemberInfo>::Iterator MI = codegen.script->member_indices.find(identifier->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue