[Scummvm-cvs-logs] scummvm master -> 67af740f3ae63b2f1f1ccf643f7eb51888d6de9b

sev- sev at scummvm.org
Mon Jul 29 11:34:56 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
67af740f3a COMMON: Revert last commit as rightfully pointed out by fuzze.


Commit: 67af740f3ae63b2f1f1ccf643f7eb51888d6de9b
    https://github.com/scummvm/scummvm/commit/67af740f3ae63b2f1f1ccf643f7eb51888d6de9b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-07-29T02:30:47-07:00

Commit Message:
COMMON: Revert last commit as rightfully pointed out by fuzze.

Changed paths:
    common/rect.h



diff --git a/common/rect.h b/common/rect.h
index 31e0b51..5790cf7 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -38,14 +38,11 @@ struct Point {
 
 	Point() : x(0), y(0) {}
 	Point(int16 x1, int16 y1) : x(x1), y(y1) {}
-	Point(const Point &p) : x(p.x), y(p.y) {}
 	bool operator==(const Point &p) const { return x == p.x && y == p.y; }
 	bool operator!=(const Point &p) const { return x != p.x || y != p.y; }
 	Point operator+(const Point &delta) const {	return Point(x + delta.x, y + delta.y);	}
 	Point operator-(const Point &delta) const {	return Point(x - delta.x, y - delta.y);	}
 
-	void copy(const Point &p) { x = p.x; y = p.y; }
-
 	void operator+=(const Point &delta) {
 		x += delta.x;
 		y += delta.y;
@@ -102,12 +99,9 @@ struct Rect {
 	Rect(int16 x1, int16 y1, int16 x2, int16 y2) : top(y1), left(x1), bottom(y2), right(x2) {
 		assert(isValidRect());
 	}
-	Rect(const Rect &r) : top(r.top), left(r.left), bottom(r.bottom), right(r.right) {}
 	bool operator==(const Rect &rhs) const { return equals(rhs); }
 	bool operator!=(const Rect &rhs) const { return !equals(rhs); }
 
-	void copy(const Rect &r) { top = r.top; left = r.left; bottom = r.bottom; right = r.right; }
-
 	int16 width() const { return right - left; }
 	int16 height() const { return bottom - top; }
 






More information about the Scummvm-git-logs mailing list