[gtk/wip/chergert/macos-iosurface] remove dead code



commit 5e012aa9e3a92af7b9b196316e61849cefdfb31f
Author: Christian Hergert <christian hergert me>
Date:   Fri Feb 11 05:03:15 2022 -0800

    remove dead code

 gdk/macos/gdkmacossurface-private.h |  3 ---
 gdk/macos/gdkmacossurface.c         | 33 ---------------------------------
 2 files changed, 36 deletions(-)
---
diff --git a/gdk/macos/gdkmacossurface-private.h b/gdk/macos/gdkmacossurface-private.h
index 612a68b598..cfc5f82db3 100644
--- a/gdk/macos/gdkmacossurface-private.h
+++ b/gdk/macos/gdkmacossurface-private.h
@@ -110,9 +110,6 @@ void               _gdk_macos_surface_show                    (GdkMacosSurface
 void               _gdk_macos_surface_publish_timings         (GdkMacosSurface      *self,
                                                                gint64                
predicted_presentation_time,
                                                                gint64                refresh_interval);
-CGContextRef       _gdk_macos_surface_acquire_context         (GdkMacosSurface      *self,
-                                                               gboolean              clear_scale,
-                                                               gboolean              antialias);
 void               _gdk_macos_surface_synthesize_null_key     (GdkMacosSurface      *self);
 void               _gdk_macos_surface_move                    (GdkMacosSurface      *self,
                                                                int                   x,
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 6a497828f2..16f15bda30 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -810,39 +810,6 @@ _gdk_macos_surface_show (GdkMacosSurface *self)
   [[self->window contentView] setNeedsDisplay:YES];
 }
 
-CGContextRef
-_gdk_macos_surface_acquire_context (GdkMacosSurface *self,
-                                    gboolean         clear_scale,
-                                    gboolean         antialias)
-{
-  CGContextRef cg_context;
-
-  g_return_val_if_fail (GDK_IS_MACOS_SURFACE (self), NULL);
-
-  if (GDK_SURFACE_DESTROYED (self))
-    return NULL;
-
-  if (!(cg_context = [[NSGraphicsContext currentContext] CGContext]))
-    return NULL;
-
-  CGContextSaveGState (cg_context);
-
-  if (!antialias)
-    CGContextSetAllowsAntialiasing (cg_context, antialias);
-
-  if (clear_scale)
-    {
-      CGSize scale;
-
-      scale = CGSizeMake (1.0, 1.0);
-      scale = CGContextConvertSizeToDeviceSpace (cg_context, scale);
-
-      CGContextScaleCTM (cg_context, 1.0 / fabs (scale.width), 1.0 / fabs (scale.height));
-    }
-
-  return cg_context;
-}
-
 void
 _gdk_macos_surface_synthesize_null_key (GdkMacosSurface *self)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]