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

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 31 12:09:57 UTC 2020


 vcl/inc/quartz/salgdi.h    |    2 +-
 vcl/quartz/salgdi.cxx      |    8 --------
 vcl/quartz/salgdiutils.cxx |    9 ---------
 3 files changed, 1 insertion(+), 18 deletions(-)

New commits:
commit 6bf3de9144780330a99e7512ade8c31c44b8365b
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Dec 30 16:48:08 2020 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Dec 31 13:09:18 2020 +0100

    Bin unused AquaSalGraphics::GetContext()
    
    Change-Id: I53cfc0451dd67b7508d85050fbf262aafc361550
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108513
    Tested-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/inc/quartz/salgdi.h b/vcl/inc/quartz/salgdi.h
index db47dac517a1..6d7db6a6dd60 100644
--- a/vcl/inc/quartz/salgdi.h
+++ b/vcl/inc/quartz/salgdi.h
@@ -206,7 +206,7 @@ public:
     void                    ImplDrawPixel( tools::Long nX, tools::Long nY, const RGBAColor& ); // helper to draw single pixels
 
     bool                    CheckContext();
-    CGContextRef            GetContext();
+
 #ifdef MACOSX
     void                    UpdateWindow( NSRect& ); // delivered in NSView coordinates
     void                    RefreshRect( const NSRect& );
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 704bba1fae9c..ae6a40cfd4e2 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -833,14 +833,6 @@ bool AquaSalGraphics::CheckContext()
     return false;
 }
 
-CGContextRef AquaSalGraphics::GetContext()
-{
-    if (!maContextHolder.isSet())
-        CheckContext();
-
-    return maContextHolder.get();
-}
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx
index 985fe38a2d11..94ecb9c5af53 100644
--- a/vcl/quartz/salgdiutils.cxx
+++ b/vcl/quartz/salgdiutils.cxx
@@ -207,15 +207,6 @@ bool AquaSalGraphics::CheckContext()
     return maContextHolder.isSet();
 }
 
-CGContextRef AquaSalGraphics::GetContext()
-{
-    if (!maContextHolder.isSet())
-    {
-        CheckContext();
-    }
-    return maContextHolder.get();
-}
-
 /**
  * Blit the contents of our internal maLayer state to the
  * associated window, if any; cf. drawRect event handling


More information about the Libreoffice-commits mailing list