Merge pull request #51947 from AnilBK/redundant-assignments

[cppcheck] Remove some redundant assignments.
This commit is contained in:
Michael Alexsander 2021-08-23 13:23:45 +00:00 committed by GitHub
commit 88db541705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 9 deletions

View file

@ -1117,7 +1117,6 @@ GDScriptParser::EnumNode *GDScriptParser::parse_enum() {
}
item.custom_value = value;
}
item.rightmost_column = previous.rightmost_column;
item.index = enum_node->values.size();
enum_node->values.push_back(item);