summaryrefslogtreecommitdiff
path: root/src/gui/rect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rect.cpp')
-rw-r--r--src/gui/rect.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/rect.cpp b/src/gui/rect.cpp
index 5f9d2bf0f..3f59d94cb 100644
--- a/src/gui/rect.cpp
+++ b/src/gui/rect.cpp
@@ -135,22 +135,10 @@ bool Rect::isIntersecting(const Rect& rectangle) const
return true;
}
-bool Rect::isPointInRect(int x_, int y_) const
+bool Rect::isPointInRect(const int x_, const int y_) const
{
return x_ >= x
&& y_ >= y
&& x_ < x + width
&& y_ < y + height;
}
-
-std::ostream& operator<<(std::ostream& out,
- const Rect& rectangle)
-{
- out << "Rect [x = " << rectangle.x
- << ", y = " << rectangle.y
- << ", width = " << rectangle.width
- << ", height = " << rectangle.height
- << "]";
-
- return out;
-}