diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 09:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 14:01:00 +0200 |
commit | 7430dfe2a4a3b13ffa248bf14a3a2ca87993f48d (patch) | |
tree | 3b9607225ec2df9934b71df223c482ca7a069ff1 /vcl | |
parent | 3b835b8d546ca16d7edcb06eda017e276383ea0f (diff) |
loplugin:unusedmethods
Change-Id: I34009aabf0befb346470b5c0d96ad8fc476b7c4e
Reviewed-on: https://gerrit.libreoffice.org/60300
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/salgdi.hxx | 1 | ||||
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 17 | ||||
-rw-r--r-- | vcl/source/window/window2.cxx | 51 |
3 files changed, 0 insertions, 69 deletions
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index 94ceb141bb44..31c484885a2b 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -217,7 +217,6 @@ public: void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev ) const; void mirror( ImplControlValue&, const OutputDevice* ) const; basegfx::B2DPoint mirror( const basegfx::B2DPoint& i_rPoint, const OutputDevice *pOutDev ) const; - basegfx::B2DPolygon mirror( const basegfx::B2DPolygon& i_rPoly, const OutputDevice *pOutDev ) const; basegfx::B2DPolyPolygon mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice *pOutDev ) const; const basegfx::B2DHomMatrix& getMirror( const OutputDevice *pOutDev ) const; basegfx::B2DHomMatrix mirror( const basegfx::B2DHomMatrix& i_rMatrix, const OutputDevice *pOutDev ) const; diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 7136860c583a..d39bd333a9cf 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -423,23 +423,6 @@ basegfx::B2DPoint SalGraphics::mirror( const basegfx::B2DPoint& i_rPoint, const } } -basegfx::B2DPolygon SalGraphics::mirror( const basegfx::B2DPolygon& i_rPoly, const OutputDevice* i_pOutDev ) const -{ - const basegfx::B2DHomMatrix& rMirror(getMirror(i_pOutDev)); - - if(rMirror.isIdentity()) - { - return i_rPoly; - } - else - { - basegfx::B2DPolygon aRet(i_rPoly); - aRet.transform(rMirror); - aRet.flip(); - return aRet; - } -} - basegfx::B2DPolyPolygon SalGraphics::mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice* i_pOutDev ) const { const basegfx::B2DHomMatrix& rMirror(getMirror(i_pOutDev)); diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 522b0ef8f1c3..be926265c755 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -222,57 +222,6 @@ void Window::InvertTracking( const tools::Rectangle& rRect, ShowTrackFlags nFlag } } -void Window::InvertTracking( const tools::Polygon& rPoly, ShowTrackFlags nFlags ) -{ - sal_uInt16 nPoints = rPoly.GetSize(); - - if ( nPoints < 2 ) - return; - - OutputDevice *pOutDev = GetOutDev(); - - tools::Polygon aPoly( pOutDev->ImplLogicToDevicePixel( rPoly ) ); - - SalGraphics* pGraphics; - - if ( nFlags & ShowTrackFlags::TrackWindow ) - { - if ( !IsDeviceOutputNecessary() ) - return; - - // we need a graphics - if ( !mpGraphics ) - { - if ( !pOutDev->AcquireGraphics() ) - return; - } - - if ( mbInitClipRegion ) - InitClipRegion(); - - if ( mbOutputClipped ) - return; - - pGraphics = mpGraphics; - } - else - { - pGraphics = ImplGetFrameGraphics(); - - if ( nFlags & ShowTrackFlags::Clip ) - { - Point aPoint( mnOutOffX, mnOutOffY ); - vcl::Region aRegion( tools::Rectangle( aPoint, - Size( mnOutWidth, mnOutHeight ) ) ); - ImplClipBoundaries( aRegion, false, false ); - pOutDev->SelectClipRegion( aRegion, pGraphics ); - } - } - - const SalPoint* pPtAry = reinterpret_cast<const SalPoint*>(aPoly.GetConstPointAry()); - pGraphics->Invert( nPoints, pPtAry, SalInvert::TrackFrame, this ); -} - IMPL_LINK( Window, ImplTrackTimerHdl, Timer*, pTimer, void ) { ImplSVData* pSVData = ImplGetSVData(); |