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:
parent
9b3d43cb97
commit
85220fec01
49 changed files with 348 additions and 392 deletions
|
|
@ -156,7 +156,7 @@ struct Rect2 {
|
|||
new_rect.size = new_rect.size - new_rect.position; //make relative again
|
||||
|
||||
return new_rect;
|
||||
};
|
||||
}
|
||||
inline bool has_point(const Point2 &p_point) const {
|
||||
if (p_point.x < position.x) {
|
||||
return false;
|
||||
|
|
@ -323,7 +323,7 @@ struct Rect2i {
|
|||
new_rect.size = new_rect.size - new_rect.position; //make relative again
|
||||
|
||||
return new_rect;
|
||||
};
|
||||
}
|
||||
bool has_point(const Point2 &p_point) const {
|
||||
if (p_point.x < position.x) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue