diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-07 13:58:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-08 09:51:27 +0200 |
commit | 449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch) | |
tree | fad3597606f3fbae275ff990aac45ad8f00e1c86 /vcl/source/outdev/map.cxx | |
parent | b43fde69caf456585004b3e1da5161d76eadf057 (diff) |
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'vcl/source/outdev/map.cxx')
-rw-r--r-- | vcl/source/outdev/map.cxx | 85 |
1 files changed, 0 insertions, 85 deletions
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; \ |