summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-03-15 18:32:50 +0200
committerTor Lillqvist <tml@collabora.com>2019-03-15 18:35:29 +0200
commitc1f15b7a6511fd26502a2217c18c5f68ee928a31 (patch)
treec0634c2ea3137b10ca9038ec77deb000d4e2d7cd
parent7f0e669885fb1ac6efaceb5aea21c117825e3495 (diff)
tdf#124042: Remove unnecessary code for iOS
We don't need to pop the Core Graphics context state stack completely before releasing the context. The code that tried to do that failed anyway when the context was a "foreign" one (from doc_paintWindowDPI() in core's init.cxx) thad had already been released there. Also removed another apparently unnecessary ifndef for iOS. Change-Id: Idcd1e6edd06ab259ec850fd66fcbabc3df0ae3af
-rw-r--r--vcl/quartz/salgdicommon.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 011c4297095d..fbd49f60d459 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -2052,26 +2052,11 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
mbPrinter = false;
mbVirDev = true;
-#ifdef IOS
- (void) nBitmapDepth;
-
- if( !xContext )
- {
- // We will return early a few lines lower.
- // Undo the "stack initialization" done at the initial call of
- // this method, see end.
- SAL_INFO( "vcl.cg", "CGContextRestoreGState(" << mrContext << ") " << mnContextStackDepth--);
- CGContextRestoreGState( mrContext );
- }
-#endif
-
// set graphics properties
mxLayer = xLayer;
mrContext = xContext;
-#ifndef IOS
mnBitmapDepth = nBitmapDepth;
-#endif
#ifdef IOS
mbForeignContext = xContext != NULL;