diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-03-15 18:32:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-25 09:57:11 +0200 |
commit | 8d5164463a77f7957c26bc922689f45b394a2cf6 (patch) | |
tree | 25a2229e610310005b18833315f4282074af2894 /vcl/quartz/salgdicommon.cxx | |
parent | 4c30848c852c44cbad8509c770feed5244f1940f (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
Reviewed-on: https://gerrit.libreoffice.org/76263
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/quartz/salgdicommon.cxx')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index d4d9ef7c2231..eee568533259 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -1961,25 +1961,11 @@ void AquaSalGraphics::SetVirDevGraphics(CGLayerHolder const & rLayer, CGContextR 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. - maContextHolder.restoreState(); - } -#endif - // set graphics properties maLayer = rLayer; maContextHolder.set(xContext); -#ifndef IOS mnBitmapDepth = nBitmapDepth; -#endif #ifdef IOS mbForeignContext = xContext != NULL; |