vcl/inc/unx/salgdi.h | 1 - vcl/unx/generic/gdi/salgdi.cxx | 27 --------------------------- 2 files changed, 28 deletions(-)
New commits: commit d19c1a92317a962d9ff0d682ef99284a8afe9179 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jan 11 10:37:41 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Jan 12 11:49:42 2023 +0000 X11SalGraphics::SetClipRegion is newly unused Change-Id: I920294975905c3ff3f3cc3d89411b4d0349d746d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145326 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index 99a1a3e91af6..ebe0a3c4147b 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -143,7 +143,6 @@ public: private: using SalGraphics::GetPixel; - void SetClipRegion( GC pGC, Region pXReg = nullptr ) const; void freeResources(); diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 89e6217c0645..087bfc8eb6e2 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -177,33 +177,6 @@ void X11SalGraphics::DeInit() SetDrawable(None, nullptr, m_nXScreen); } -void X11SalGraphics::SetClipRegion( GC pGC, Region pXReg ) const -{ - Display *pDisplay = GetXDisplay(); - - int n = 0; - Region Regions[3]; - - if( mpClipRegion ) - Regions[n++] = mpClipRegion; - - if( pXReg && !XEmptyRegion( pXReg ) ) - Regions[n++] = pXReg; - - if( 0 == n ) - XSetClipMask( pDisplay, pGC, None ); - else if( 1 == n ) - XSetRegion( pDisplay, pGC, Regions[0] ); - else - { - Region pTmpRegion = XCreateRegion(); - XIntersectRegion( Regions[0], Regions[1], pTmpRegion ); - - XSetRegion( pDisplay, pGC, pTmpRegion ); - XDestroyRegion( pTmpRegion ); - } -} - void X11SalGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY ) // const { char* pForceDpi;