From 449d272daf5e99f039cdfdd25f020bd798fb9e1d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 7 Jul 2015 13:58:41 +0200 Subject: loplugin:unusedmethods vcl Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002 --- vcl/source/outdev/map.cxx | 85 ----------------------------------------------- 1 file changed, 85 deletions(-) (limited to 'vcl/source/outdev/map.cxx') diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index 4f2863ece132..530df0257627 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -1054,14 +1054,6 @@ tools::PolyPolygon OutputDevice::LogicToPixel( const tools::PolyPolygon& rLogicP return aPolyPoly; } -basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly ) const -{ - basegfx::B2DPolygon aTransformedPoly = rLogicPoly; - const ::basegfx::B2DHomMatrix& rTransformationMatrix = GetViewTransformation(); - aTransformedPoly.transform( rTransformationMatrix ); - return aTransformedPoly; -} - basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly ) const { basegfx::B2DPolyPolygon aTransformedPoly = rLogicPolyPoly; @@ -1231,49 +1223,6 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygo return aTransformedPoly; } -basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly, - const MapMode& rMapMode ) const -{ - basegfx::B2DPolygon aTransformedPoly = rLogicPoly; - const ::basegfx::B2DHomMatrix& rTransformationMatrix = GetViewTransformation( rMapMode ); - aTransformedPoly.transform( rTransformationMatrix ); - return aTransformedPoly; -} - -vcl::Region OutputDevice::LogicToPixel( const vcl::Region& rLogicRegion, const MapMode& rMapMode ) const -{ - - if(rMapMode.IsDefault() || rLogicRegion.IsNull() || rLogicRegion.IsEmpty()) - { - return rLogicRegion; - } - - vcl::Region aRegion; - - if(rLogicRegion.getB2DPolyPolygon()) - { - aRegion = vcl::Region(LogicToPixel(*rLogicRegion.getB2DPolyPolygon(), rMapMode)); - } - else if(rLogicRegion.getPolyPolygon()) - { - aRegion = vcl::Region(LogicToPixel(*rLogicRegion.getPolyPolygon(), rMapMode)); - } - else if(rLogicRegion.getRegionBand()) - { - RectangleVector aRectangles; - rLogicRegion.GetRegionRectangles(aRectangles); - const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work - - // make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring - for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter) - { - aRegion.Union(LogicToPixel(*aRectIter, rMapMode)); - } - } - - return aRegion; -} - Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const { @@ -1549,40 +1498,6 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo return aTransformedPoly; } -vcl::Region OutputDevice::PixelToLogic( const vcl::Region& rDeviceRegion, const MapMode& rMapMode ) const -{ - - if(rMapMode.IsDefault() || rDeviceRegion.IsNull() || rDeviceRegion.IsEmpty()) - { - return rDeviceRegion; - } - - vcl::Region aRegion; - - if(rDeviceRegion.getB2DPolyPolygon()) - { - aRegion = vcl::Region(PixelToLogic(*rDeviceRegion.getB2DPolyPolygon(), rMapMode)); - } - else if(rDeviceRegion.getPolyPolygon()) - { - aRegion = vcl::Region(PixelToLogic(*rDeviceRegion.getPolyPolygon(), rMapMode)); - } - else if(rDeviceRegion.getRegionBand()) - { - RectangleVector aRectangles; - rDeviceRegion.GetRegionRectangles(aRectangles); - const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work - - // make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring - for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter) - { - aRegion.Union(PixelToLogic(*aRectIter, rMapMode)); - } - } - - return aRegion; -} - #define ENTER1( rSource, pMapModeSource, pMapModeDest ) \ if ( !pMapModeSource ) \ pMapModeSource = &maMapMode; \ -- cgit