summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-06 15:06:21 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-06 16:56:23 +0100
commit178f5210e658325a705dda675c7d0c05421eea9f (patch)
treeb39e45c7c903f9aa377738218177b2f1eca424b8 /vcl/quartz
parentebd24b39eee5ac72d33ad731e31469cf8f330631 (diff)
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@collabora.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salvd.cxx12
1 files changed, 0 insertions, 12 deletions
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 );