diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-29 21:42:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-31 21:18:02 +0100 |
commit | a480f2fa061d0762da9f5c0ecd46d21a8bdb46eb (patch) | |
tree | 1733441292dafe9e630dce91401aa9ce6bb6ccf6 /vcl | |
parent | b9f14a057f53569b140d194a14941ef3d25c87b0 (diff) |
callcatcher: remove unused FillPolyPolygon
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/bmpacc.hxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/bmpacc3.cxx | 28 |
2 files changed, 0 insertions, 30 deletions
diff --git a/vcl/inc/vcl/bmpacc.hxx b/vcl/inc/vcl/bmpacc.hxx index 2663aa21b796..7562accef487 100644 --- a/vcl/inc/vcl/bmpacc.hxx +++ b/vcl/inc/vcl/bmpacc.hxx @@ -205,8 +205,6 @@ public: void FillPolygon( const Polygon& rPoly ); void DrawPolygon( const Polygon& rPoly ); - void FillPolyPolygon( const PolyPolygon& rPoly ); - private: BitmapColor* mpLineColor; diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx index 9f07c4632ac3..7da056413126 100644 --- a/vcl/source/gdi/bmpacc3.cxx +++ b/vcl/source/gdi/bmpacc3.cxx @@ -315,32 +315,4 @@ void BitmapWriteAccess::DrawPolygon( const Polygon& rPoly ) } } -// ------------------------------------------------------------------ - -void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly ) -{ - const sal_uInt16 nCount = rPolyPoly.Count(); - - if( nCount && mpFillColor ) - { - const BitmapColor& rFillColor = *mpFillColor; - Region aRegion( rPolyPoly ); - Rectangle aRect; - - aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) ); - - if( !aRegion.IsEmpty() ) - { - RegionHandle aRegHandle( aRegion.BeginEnumRects() ); - - while( aRegion.GetNextEnumRect( aRegHandle, aRect ) ) - for( long nY = aRect.Top(), nEndY = aRect.Bottom(); nY <= nEndY; nY++ ) - for( long nX = aRect.Left(), nEndX = aRect.Right(); nX <= nEndX; nX++ ) - SetPixel( nY, nX, rFillColor ); - - aRegion.EndEnumRects( aRegHandle ); - } - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |