From 178f5210e658325a705dda675c7d0c05421eea9f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 6 Nov 2018 15:06:21 +0200 Subject: 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 --- vcl/quartz/salvd.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'vcl/quartz') 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(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 ); -- cgit