[Libreoffice-commits] core.git: vcl/quartz

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 6 15:57:54 UTC 2018


 vcl/quartz/salvd.cxx |   12 ------------
 1 file changed, 12 deletions(-)

New commits:
commit 178f5210e658325a705dda675c7d0c05421eea9f
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Nov 6 15:06:21 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Nov 6 16:56:23 2018 +0100

    Bin more no longer needed dbgutil code
    
    It was used to initialise a virtual device pixel buffer to an
    "interesting" pattern, in case actual rendering to it failed. But it
    hasn't been needed in a while. And similar code can always be added
    temporarily if needed, no need to keep permanently, even in #ifdef
    DBG_UTIL.
    
    Change-Id: I650afcb811b903ce3d6d50b9f1eb38c83be68df5
    Reviewed-on: https://gerrit.libreoffice.org/62962
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 333276678b57..5f4c1337d9b8 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -283,12 +283,6 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
 
                 const int nBytesPerRow = (mnBitmapDepth * nDX) / 8;
                 void* pRawData = std::malloc( nBytesPerRow * nDY );
-#ifdef DBG_UTIL
-                for (ssize_t i = 0; i < nBytesPerRow * nDY; i++)
-                {
-                    static_cast<sal_uInt8*>(pRawData)[i] = (i & 0xFF);
-                }
-#endif
                 mxBitmapContext = CGBitmapContextCreate( pRawData, nDX, nDY,
                                                          8, nBytesPerRow, GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst );
                 SAL_INFO( "vcl.cg",  "CGBitmapContextCreate(" << nDX << "x" << nDY << "x32) = " << mxBitmapContext );
@@ -300,12 +294,6 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
 
         const int nBytesPerRow = (mnBitmapDepth * nDX) / 8;
         void* pRawData = std::malloc( nBytesPerRow * nDY );
-#ifdef DBG_UTIL
-        for (ssize_t i = 0; i < nBytesPerRow * nDY; i++)
-        {
-            ((sal_uInt8*)pRawData)[i] = (i & 0xFF);
-        }
-#endif
         mxBitmapContext = CGBitmapContextCreate( pRawData, nDX, nDY,
                                                  8, nBytesPerRow, GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst | kCGImageByteOrder32Little );
         SAL_INFO( "vcl.cg",  "CGBitmapContextCreate(" << nDX << "x" << nDY << "x32) = " << mxBitmapContext );


More information about the Libreoffice-commits mailing list