summaryrefslogtreecommitdiffstats
path: root/core/math/rect2.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-05-19 15:46:49 +0200
committerRémi Verschelde <rverschelde@gmail.com>2020-05-19 15:57:56 +0200
commit85220fec010a4946cb364974eac69418b4e06411 (patch)
treec0b8b99f083180a03d0968c08cd0e6ca10b903b3 /core/math/rect2.h
parent9b3d43cb974dd3407fd0936e486e34b8cec436e7 (diff)
downloadredot-engine-85220fec010a4946cb364974eac69418b4e06411.tar.gz
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.
Diffstat (limited to 'core/math/rect2.h')
-rw-r--r--core/math/rect2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/rect2.h b/core/math/rect2.h
index 1b86dbd49a..14393325ec 100644
--- a/core/math/rect2.h
+++ b/core/math/rect2.h
@@ -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;