diff options
Diffstat (limited to 'ppapi/cpp/rect.cc')
-rw-r--r-- | ppapi/cpp/rect.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ppapi/cpp/rect.cc b/ppapi/cpp/rect.cc index b57be2d..ef347dc 100644 --- a/ppapi/cpp/rect.cc +++ b/ppapi/cpp/rect.cc @@ -34,13 +34,6 @@ void Rect::Offset(int32_t horizontal, int32_t vertical) { rect_.point.y += vertical; } -void Rect::swap(Rect& other) { - std::swap(rect_.point.x, other.rect_.point.x); - std::swap(rect_.point.y, other.rect_.point.y); - std::swap(rect_.size.width, other.rect_.size.width); - std::swap(rect_.size.height, other.rect_.size.height); -} - bool Rect::Contains(int32_t point_x, int32_t point_y) const { return (point_x >= x()) && (point_x < right()) && (point_y >= y()) && (point_y < bottom()); |