diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/cliprect.cpp | 9 | ||||
-rw-r--r-- | src/gui/cliprect.h | 9 |
2 files changed, 1 insertions, 17 deletions
diff --git a/src/gui/cliprect.cpp b/src/gui/cliprect.cpp index bb50b9986..4094a711a 100644 --- a/src/gui/cliprect.cpp +++ b/src/gui/cliprect.cpp @@ -84,12 +84,3 @@ ClipRect::ClipRect(const int x0, const int y0, yOffset(yOffset0) { } - -const ClipRect& ClipRect::operator=(const Rect& other) -{ - x = other.x; - y = other.y; - width = other.width; - height = other.height; - return *this; -} diff --git a/src/gui/cliprect.h b/src/gui/cliprect.h index 44ab6f01b..c4ef23600 100644 --- a/src/gui/cliprect.h +++ b/src/gui/cliprect.h @@ -103,14 +103,7 @@ class ClipRect final : public Rect const int xOffset0, const int yOffset0); - /** - * Copy constructor. Copies x, y, width and height - * field from a rectangle to a clip rectangle. - * - * @param other The rectangle to copy data from. - * @returns A clip rectangle with data copyied from a rectangle. - */ - const ClipRect& operator=(const Rect& other); + A_DELETE_COPY(ClipRect) /** * Holds the x offset of the x coordinate. |