[gtk/wip/chergert/macos-iosurface] remove unused API



commit 4defa143413df3fc16e7165c19967c09ec724af5
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 9 14:51:52 2022 -0800

    remove unused API

 gdk/macos/gdkmacosbuffer-private.h |  1 -
 gdk/macos/gdkmacosbuffer.c         | 28 ----------------------------
 2 files changed, 29 deletions(-)
---
diff --git a/gdk/macos/gdkmacosbuffer-private.h b/gdk/macos/gdkmacosbuffer-private.h
index ac8ec4e107..1a8b0a079c 100644
--- a/gdk/macos/gdkmacosbuffer-private.h
+++ b/gdk/macos/gdkmacosbuffer-private.h
@@ -39,7 +39,6 @@ GdkMacosBuffer       *_gdk_macos_buffer_new              (GdkMacosDisplay *displ
                                                           int              bytes_per_element,
                                                           int              bits_per_pixel);
 IOSurfaceRef          _gdk_macos_buffer_get_native       (GdkMacosBuffer  *self);
-CGContextRef          _gdk_macos_buffer_create_context   (GdkMacosBuffer  *self);
 void                  _gdk_macos_buffer_lock             (GdkMacosBuffer  *self);
 void                  _gdk_macos_buffer_unlock           (GdkMacosBuffer  *self);
 guint                 _gdk_macos_buffer_get_width        (GdkMacosBuffer  *self);
diff --git a/gdk/macos/gdkmacosbuffer.c b/gdk/macos/gdkmacosbuffer.c
index 7e66b83a09..252aea77c3 100644
--- a/gdk/macos/gdkmacosbuffer.c
+++ b/gdk/macos/gdkmacosbuffer.c
@@ -26,15 +26,6 @@
 
 #include "gdkmacosbuffer-private.h"
 
-CGContextRef CGIOSurfaceContextCreate      (IOSurfaceRef    io_surface,
-                                            size_t          width,
-                                            size_t          height,
-                                            size_t          bitsPerComponent,
-                                            size_t          bitsPerPixel,
-                                            CGColorSpaceRef colorSpace,
-                                            CGBitmapInfo    bitmapInfo);
-CGImageRef   CGIOSurfaceContextCreateImage (CGContextRef    cgContext);
-
 struct _GdkMacosBuffer
 {
   GObject          parent_instance;
@@ -188,25 +179,6 @@ _gdk_macos_buffer_unlock (GdkMacosBuffer *self)
   IOSurfaceUnlock (self->surface, 0, NULL);
 }
 
-CGContextRef
-_gdk_macos_buffer_create_context (GdkMacosBuffer *self)
-{
-  CGBitmapInfo bitmapInfo = kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host;
-  CGContextRef cg_context;
-
-  g_return_val_if_fail (GDK_IS_MACOS_BUFFER (self), NULL);
-
-  cg_context = CGIOSurfaceContextCreate (self->surface,
-                                         self->width,
-                                         self->height,
-                                         self->bits_per_pixel / 4,
-                                         self->bits_per_pixel,
-                                         self->colorspace,
-                                         bitmapInfo);
-
-  return cg_context;
-}
-
 guint
 _gdk_macos_buffer_get_width (GdkMacosBuffer *self)
 {


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