[Libreoffice-commits] core.git: vcl/source vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 1 09:10:40 UTC 2021


 vcl/source/window/paint.cxx              |   18 ------------------
 vcl/unx/generic/print/genpspgraphics.cxx |   14 --------------
 2 files changed, 32 deletions(-)

New commits:
commit ebbaf83bcf18b8c78fb65a617e02e82d5163d319
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Feb 28 20:18:03 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Mar 1 10:10:03 2021 +0100

    drop commented out code
    
    since...
    
    commit e717d1dcce7f8906311c5ccdbb2326b61a702630
    Date:   Tue Oct 23 12:46:28 2012 +0000
    
        Resolves: #i121237# Rework/Cleanup of Region code...
    
    Change-Id: I6851ad46f3fc341e9f64eeeef6c3d7cebd804e06
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111719
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 48149f50b056..e673299095b9 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1088,24 +1088,6 @@ void Window::SetWindowRegionPixel( const vcl::Region& rRegion )
                 }
 
                 mpWindowImpl->mpFrame->EndSetClipRegion();
-
-                //long                nX;
-                //long                nY;
-                //long                nWidth;
-                //long                nHeight;
-                //sal_uLong               nRectCount;
-                //ImplRegionInfo      aInfo;
-                //sal_Bool                bRegionRect;
-
-                //nRectCount = mpWindowImpl->maWinRegion.GetRectCount();
-                //mpWindowImpl->mpFrame->BeginSetClipRegion( nRectCount );
-                //bRegionRect = mpWindowImpl->maWinRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight );
-                //while ( bRegionRect )
-                //{
-                //    mpWindowImpl->mpFrame->UnionClipRegion( nX, nY, nWidth, nHeight );
-                //    bRegionRect = mpWindowImpl->maWinRegion.ImplGetNextRect( aInfo, nX, nY, nWidth, nHeight );
-                //}
-                //mpWindowImpl->mpFrame->EndSetClipRegion();
             }
             else
                 SetWindowRegionPixel();
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx
index eb427b2a73af..da5092da4809 100644
--- a/vcl/unx/generic/print/genpspgraphics.cxx
+++ b/vcl/unx/generic/print/genpspgraphics.cxx
@@ -264,20 +264,6 @@ bool GenPspGraphics::setClipRegion( const vcl::Region& i_rClip )
 
     m_pPrinterGfx->EndSetClipRegion();
 
-    //m_pPrinterGfx->BeginSetClipRegion( i_rClip.GetRectCount() );
-
-    //ImplRegionInfo aInfo;
-    //long nX, nY, nW, nH;
-    //bool bRegionRect = i_rClip.ImplGetFirstRect(aInfo, nX, nY, nW, nH );
-    //while( bRegionRect )
-    //{
-    //    if ( nW && nH )
-    //    {
-    //        m_pPrinterGfx->UnionClipRegion( nX, nY, nW, nH );
-    //    }
-    //    bRegionRect = i_rClip.ImplGetNextRect( aInfo, nX, nY, nW, nH );
-    //}
-    //m_pPrinterGfx->EndSetClipRegion();
     return true;
 }
 


More information about the Libreoffice-commits mailing list