Index: ui/gfx/rect_f.cc |
diff --git a/ui/gfx/rect_f.cc b/ui/gfx/rect_f.cc |
index d7b1089c96de6c556d3fc08b85ebc2e1fe86c4cd..0f055e1928dbc9fb7b3b4a073cd9a5499c45ef09 100644 |
--- a/ui/gfx/rect_f.cc |
+++ b/ui/gfx/rect_f.cc |
@@ -31,18 +31,6 @@ std::string RectF::ToString() const { |
size().ToString().c_str()); |
} |
-RectF operator+(const RectF& lhs, const Vector2dF& rhs) { |
- RectF result(lhs); |
- result += rhs; |
- return result; |
-} |
- |
-RectF operator-(const RectF& lhs, const Vector2dF& rhs) { |
- RectF result(lhs); |
- result -= rhs; |
- return result; |
-} |
- |
RectF IntersectRects(const RectF& a, const RectF& b) { |
RectF result = a; |
result.Intersect(b); |
@@ -61,12 +49,6 @@ RectF SubtractRects(const RectF& a, const RectF& b) { |
return result; |
} |
-RectF ScaleRect(const RectF& r, float x_scale, float y_scale) { |
- RectF result = r; |
- result.Scale(x_scale, y_scale); |
- return result; |
-} |
- |
RectF BoundingRect(const PointF& p1, const PointF& p2) { |
float rx = std::min(p1.x(), p2.x()); |
float ry = std::min(p1.y(), p2.y()); |