region: remove vector addition operator

It is unclear what this operator was supposed to do, and triggers a
number of sign and type warnings. Re-add later if necessary under a more
descriptive name.
This commit is contained in:
Danny Robson 2014-07-02 15:45:29 +10:00
parent d5df6116d5
commit d1ed7107ae
2 changed files with 0 additions and 12 deletions

View File

@ -43,16 +43,6 @@ region<T>::region (T _x, T _y, size_type _w, size_type _h):
} }
template <typename T>
region<T>&
region<T>::operator+= (const vector<2> &rhs) {
x += rhs.x;
y += rhs.y;
return *this;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
typename region<T>::size_type typename region<T>::size_type

View File

@ -42,8 +42,6 @@ namespace util {
region (T _x, T _y, size_type _w, size_type _h); region (T _x, T _y, size_type _w, size_type _h);
region& operator +=(const vector<2>& rhs);
size_type area (void) const; size_type area (void) const;
size_type diameter (void) const; size_type diameter (void) const;
void scale (double factor); void scale (double factor);