diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-29 12:40:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 05:58:41 +0000 |
commit | c7e8f21a538c409abe70b90d7bba38386e90a876 (patch) | |
tree | c5d1e79d88c5728c29fa49106b0e7c40e0f5f01d /include/canvas | |
parent | efbde08e2a9930edb4637824d9d3a768873314a8 (diff) |
loplugin:unusedmethods
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f
Reviewed-on: https://gerrit.libreoffice.org/19636
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/canvas')
-rw-r--r-- | include/canvas/canvastools.hxx | 7 | ||||
-rw-r--r-- | include/canvas/verifyinput.hxx | 12 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx index 2085915b6803..831d3b97d5c8 100644 --- a/include/canvas/canvastools.hxx +++ b/include/canvas/canvastools.hxx @@ -62,12 +62,6 @@ namespace com { namespace sun { namespace star { namespace rendering struct Texture; class XIntegerBitmapColorSpace; class XPolyPolygon2D; - - bool operator==( const RenderState& rLHS, - const RenderState& rRHS ); - - bool operator==( const ViewState& rLHS, - const ViewState& rRHS ); } } } } namespace com { namespace sun { namespace star { namespace awt @@ -111,7 +105,6 @@ namespace canvas // mickey's math tricks... inline unsigned int pow2( unsigned int c ) { return 0x1 << c; } inline unsigned int mask( unsigned int c ) { return ((unsigned int)(-1)) / (pow2(pow2(c)) + 1); } - inline unsigned int count( unsigned int x, unsigned int c ) { return ((x) & mask(c)) + (((x) >> (pow2(c))) & mask(c)); } /** Round given floating point value down to next integer */ diff --git a/include/canvas/verifyinput.hxx b/include/canvas/verifyinput.hxx index 8ea52acd0842..615f5295cf25 100644 --- a/include/canvas/verifyinput.hxx +++ b/include/canvas/verifyinput.hxx @@ -558,18 +558,6 @@ namespace canvas /** Range checker, which throws css::lang::IndexOutOfBounds exception, when index range is violated - */ - template< typename NumType > inline void verifyIndexRange( NumType arg, NumType lowerBound, NumType upperBound ) - { - if( arg < lowerBound || - arg > upperBound ) - { - throw css::lang::IndexOutOfBoundsException(); - } - } - - /** Range checker, which throws css::lang::IndexOutOfBounds exception, when - index range is violated @param rect Rect to verify |