Remove Swap() methods as there's std::swap for this

This commit is contained in:
Dmitry Marakasov 2014-02-11 04:19:51 +04:00
parent d55950f8aa
commit 14819ba188
4 changed files with 0 additions and 12 deletions

View File

@ -81,8 +81,4 @@ int Point::GetY() const {
return point_->y;
}
void Point::Swap(Point& other) noexcept {
point_.swap(other.point_);
}
}

View File

@ -63,8 +63,6 @@ public:
int GetX() const;
int GetY() const;
void Swap(Point& other) noexcept;
};
}

View File

@ -111,8 +111,4 @@ int Rect::GetY2() const {
return rect_->y + rect_->h;
}
void Rect::Swap(Rect& other) noexcept {
rect_.swap(other.rect_);
}
}

View File

@ -59,8 +59,6 @@ public:
int GetH() const;
int GetX2() const;
int GetY2() const;
void Swap(Rect& other) noexcept;
};
}