summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-08-18 11:44:06 +0200
committerAndras Timar <atimar@suse.com>2012-08-23 08:12:37 +0000
commitc564fdfe298d8f93e3f09f61dc01a152f57b6506 (patch)
treeb006b8acd1ac521b1ed20c5fc249e590ab20589b /vcl/unx
parent52755d6d2cf1c6addaf3c91b93bb86d66b730409 (diff)
unusedcode.easy: remove recently unused code
Change-Id: Ia33e933d9c15c2afa25915b7e8d6a13b0c740d1c Reviewed-on: https://gerrit.libreoffice.org/426 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/gdi/salgdi2.cxx80
1 files changed, 0 insertions, 80 deletions
diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx
index 40f35991cd68..22cfb604b61e 100644
--- a/vcl/unx/generic/gdi/salgdi2.cxx
+++ b/vcl/unx/generic/gdi/salgdi2.cxx
@@ -242,86 +242,6 @@ inline GC X11SalGraphics::GetStippleGC()
return pStippleGC_;
}
-// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-int X11SalGraphics::Clip( XLIB_Region pRegion,
- int &nX,
- int &nY,
- unsigned int &nDX,
- unsigned int &nDY,
- int &nSrcX,
- int &nSrcY ) const
-{
- XRectangle aRect;
- XClipBox( pRegion, &aRect );
-
- if( int(nX + nDX) <= int(aRect.x) || nX >= int(aRect.x + aRect.width) )
- return RectangleOut;
- if( int(nY + nDY) <= int(aRect.y) || nY >= int(aRect.y + aRect.height) )
- return RectangleOut;
-
- if( nX < aRect.x )
- {
- nSrcX += aRect.x - nX;
- nDX -= aRect.x - nX;
- nX = aRect.x;
- }
- else if( int(nX + nDX) > int(aRect.x + aRect.width) )
- nDX = aRect.x + aRect.width - nX;
-
- if( nY < aRect.y )
- {
- nSrcY += aRect.y - nY;
- nDY -= aRect.y - nY;
- nY = aRect.y;
- }
- else if( int(nY + nDY) > int(aRect.y + aRect.height) )
- nDY = aRect.y + aRect.height - nY;
-
- return RectangleIn;
-}
-
-// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-int X11SalGraphics::Clip( int &nX,
- int &nY,
- unsigned int &nDX,
- unsigned int &nDY,
- int &nSrcX,
- int &nSrcY ) const
-
-{
- if( pPaintRegion_
- && RectangleOut == Clip( pPaintRegion_, nX, nY, nDX, nDY, nSrcX, nSrcY ) )
- return RectangleOut;
-
- if( mpClipRegion
- && RectangleOut == Clip( mpClipRegion, nX, nY, nDX, nDY, nSrcX, nSrcY ) )
- return RectangleOut;
-
- int nPaint;
- if( pPaintRegion_ )
- {
- nPaint = XRectInRegion( pPaintRegion_, nX, nY, nDX, nDY );
- if( RectangleOut == nPaint )
- return RectangleOut;
- }
- else
- nPaint = RectangleIn;
-
- int nClip;
- if( mpClipRegion )
- {
- nClip = XRectInRegion( mpClipRegion, nX, nY, nDX, nDY );
- if( RectangleOut == nClip )
- return RectangleOut;
- }
- else
- nClip = RectangleIn;
-
- return RectangleIn == nClip && RectangleIn == nPaint
- ? RectangleIn
- : RectanglePart;
-}
-
// -=-= SalGraphics =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=