You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Style: Remove unnecessary semicolons from core
Semicolons are not necessary after function definitions or control flow blocks, and having some code use them makes things inconsistent (and occasionally can mess up `clang-format`'s formatting). Removing them is tedious work though, I had to do this manually (regex + manual review) as I couldn't find a tool for that. All other code folders would need to get the same treatment.
This commit is contained in:
@@ -361,7 +361,7 @@ void XMLParser::_parse_current_node() {
|
||||
|
||||
uint64_t XMLParser::get_node_offset() const {
|
||||
return node_offset;
|
||||
};
|
||||
}
|
||||
|
||||
Error XMLParser::seek(uint64_t p_pos) {
|
||||
ERR_FAIL_COND_V(!data, ERR_FILE_EOF);
|
||||
@@ -370,7 +370,7 @@ Error XMLParser::seek(uint64_t p_pos) {
|
||||
P = data + p_pos;
|
||||
|
||||
return read();
|
||||
};
|
||||
}
|
||||
|
||||
void XMLParser::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("read"), &XMLParser::read);
|
||||
@@ -398,7 +398,7 @@ void XMLParser::_bind_methods() {
|
||||
BIND_ENUM_CONSTANT(NODE_COMMENT);
|
||||
BIND_ENUM_CONSTANT(NODE_CDATA);
|
||||
BIND_ENUM_CONSTANT(NODE_UNKNOWN);
|
||||
};
|
||||
}
|
||||
|
||||
Error XMLParser::read() {
|
||||
// if not end reached, parse the node
|
||||
|
||||
Reference in New Issue
Block a user