diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-01 13:55:55 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-02 06:37:53 +0000 |
commit | d3d4b8691968810bb57bbd94dde39bb7be4be4da (patch) | |
tree | 0a2720842b799b0803d879a4ae3d021ff7777f4a /include/tools/gen.hxx | |
parent | a28231b72b5a87dddffad82a34deac4e5bb76ed1 (diff) |
loplugin:unusedmethods tools
Change-Id: I45f5489233879126d4f9ee3d01db504d950bb597
Reviewed-on: https://gerrit.libreoffice.org/16656
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools/gen.hxx')
-rw-r--r-- | include/tools/gen.hxx | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 3e3ec8ecf97b..32e488ac63ff 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -95,10 +95,6 @@ public: long& Y() { return nB; } void Move( long nHorzMove, long nVertMove ); - bool IsAbove( const Point& rPoint ) const; - bool IsBelow( const Point& rPoint ) const; - bool IsLeft( const Point& rPoint ) const; - bool IsRight( const Point& rPoint ) const; void RotateAround( long& rX, long& rY, short nOrientation ) const; @@ -133,26 +129,6 @@ inline void Point::Move( long nHorzMove, long nVertMove ) nB += nVertMove; } -inline bool Point::IsAbove( const Point& rPoint ) const -{ - return (nB > rPoint.nB); -} - -inline bool Point::IsBelow( const Point& rPoint ) const -{ - return (nB < rPoint.nB); -} - -inline bool Point::IsLeft( const Point& rPoint ) const -{ - return (nA < rPoint.nA); -} - -inline bool Point::IsRight( const Point& rPoint ) const -{ - return (nA > rPoint.nA); -} - inline Point& Point::operator += ( const Point& rPoint ) { nA += rPoint.nA; @@ -322,7 +298,6 @@ public: bool operator !() const { return !Len(); } long getMin() const { return Min(); } - long getMax() const { return Max(); } void setMin(long nMin) { Min() = nMin; } void setMax(long nMax) { Max() = nMax; } }; @@ -450,7 +425,7 @@ public: /** * Contracts the rectangle in all directions by the input value. */ - inline void contract(long nContractBy); + ; private: long nLeft; @@ -706,13 +681,7 @@ inline void Rectangle::expand(long nExpandBy) nBottom += nExpandBy; } -inline void Rectangle::contract(long nContractBy) -{ - nLeft += nContractBy; - nTop += nContractBy; - nRight -= nContractBy; - nBottom -= nContractBy; -} + template< typename charT, typename traits > inline std::basic_ostream<charT, traits> & operator <<( |