diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-02-01 16:34:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-01 16:34:50 +0000 |
commit | b3c3e116ff0eb9b550b73d3901395c042e31d192 (patch) | |
tree | 10814ac19c46bffb767d25e9ec408531d3878c14 /basegfx/source/tools | |
parent | bc8fa08a7ae48f68ee5578cb7820336c70898202 (diff) |
unusedcode.easy: Removed unused code
Diffstat (limited to 'basegfx/source/tools')
-rw-r--r-- | basegfx/source/tools/canvastools.cxx | 56 | ||||
-rw-r--r-- | basegfx/source/tools/unopolypolygon.cxx | 5 |
2 files changed, 0 insertions, 61 deletions
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx index 18e0ad342b1f..5743c306715e 100644 --- a/basegfx/source/tools/canvastools.cxx +++ b/basegfx/source/tools/canvastools.cxx @@ -510,45 +510,6 @@ namespace basegfx rRectangle.X2, rRectangle.Y2 ); } - awt::Size awtSizeFromB2ISize( const ::basegfx::B2IVector& rVec ) - { - return awt::Size( rVec.getX(), - rVec.getY() ); - } - - awt::Point awtPointFromB2IPoint( const ::basegfx::B2IPoint& rPoint ) - { - return awt::Point( rPoint.getX(), - rPoint.getY() ); - } - - awt::Rectangle awtRectangleFromB2IRectangle( const ::basegfx::B2IRange& rRect ) - { - OSL_ENSURE( rRect.getWidth() < ::std::numeric_limits< sal_Int32 >::max() && - rRect.getWidth() > ::std::numeric_limits< sal_Int32 >::min(), - "awtRectangleFromB2IRectangle(): width overflow" ); - OSL_ENSURE( rRect.getHeight() < ::std::numeric_limits< sal_Int32 >::max() && - rRect.getHeight() > ::std::numeric_limits< sal_Int32 >::min(), - "awtRectangleFromB2IRectangle(): height overflow" ); - - return awt::Rectangle( rRect.getMinX(), - rRect.getMinY(), - static_cast< sal_Int32 >(rRect.getWidth()), - static_cast< sal_Int32 >(rRect.getHeight()) ); - } - - ::basegfx::B2IVector b2ISizeFromAwtSize( const awt::Size& rSize ) - { - return ::basegfx::B2IVector( rSize.Width, - rSize.Height ); - } - - ::basegfx::B2IPoint b2IPointFromAwtPoint( const awt::Point& rPoint ) - { - return ::basegfx::B2IPoint( rPoint.X, - rPoint.Y ); - } - ::basegfx::B2IRange b2IRectangleFromAwtRectangle( const awt::Rectangle& rRect ) { return ::basegfx::B2IRange( rRect.X, @@ -581,23 +542,6 @@ namespace basegfx ceil(rRange.getMaxY()) ); } - // Geometry comparisons - // =================================================================== - - bool awtSizeAreEqual( const ::com::sun::star::awt::Size& rA, const ::com::sun::star::awt::Size& rB ) - { - return (rA.Width == rB.Width && rA.Height == rB.Height); - } - - bool awtPointAreEqual( const ::com::sun::star::awt::Point& rA, const ::com::sun::star::awt::Point& rB ) - { - return (rA.X == rB.X && rA.Y == rB.Y); - } - - bool awtRectangleAreEqual( const ::com::sun::star::awt::Rectangle& rA, const ::com::sun::star::awt::Rectangle& rB ) - { - return (rA.X == rB.X && rA.Y == rB.Y && rA.Width == rB.Width && rA.Height == rB.Height); - } } // namespace bgfxtools } // namespace canvas diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx index 80203c2587bc..2ffaabd149c4 100644 --- a/basegfx/source/tools/unopolypolygon.cxx +++ b/basegfx/source/tools/unopolypolygon.cxx @@ -445,11 +445,6 @@ namespace unotools return aSubsetPoly; } - B2DPolyPolygon UnoPolyPolygon::getPolyPolygonUnsafe() const - { - return maPolyPoly; - } - #define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon" #define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D" ::rtl::OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException ) |