summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-04-13 05:28:14 +0200
committerBenjamin Otte <otte@redhat.com>2023-04-13 17:15:35 +0200
commit9763d83a9d9654bd289f166d8afaf58dc72a1a48 (patch)
tree4e804ce1f0938c5a4bcee4e75b50f7c50304fe6d
parent5f82a496cb41bce69ee708e27b45315cb681ac4c (diff)
downloadgtk+-9763d83a9d9654bd289f166d8afaf58dc72a1a48.tar.gz
gdk: Remove unused vfunc
-rw-r--r--gdk/broadway/gdksurface-broadway.c11
-rw-r--r--gdk/gdksurfaceprivate.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index f64392b658..3410eb5681 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -291,16 +291,6 @@ _gdk_broadway_display_create_surface (GdkDisplay *display,
return surface;
}
-static cairo_surface_t *
-gdk_broadway_surface_ref_cairo_surface (GdkSurface *surface)
-{
- if (GDK_IS_BROADWAY_SURFACE (surface) &&
- GDK_SURFACE_DESTROYED (surface))
- return NULL;
-
- return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 1, 1);
-}
-
static void
_gdk_broadway_surface_destroy (GdkSurface *surface,
gboolean foreign_destroy)
@@ -1254,7 +1244,6 @@ gdk_broadway_surface_class_init (GdkBroadwaySurfaceClass *klass)
object_class->finalize = gdk_broadway_surface_finalize;
- impl_class->ref_cairo_surface = gdk_broadway_surface_ref_cairo_surface;
impl_class->hide = gdk_broadway_surface_hide;
impl_class->get_geometry = gdk_broadway_surface_get_geometry;
impl_class->get_root_coords = gdk_broadway_surface_get_root_coords;
diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h
index 04a7597ad3..24562c7848 100644
--- a/gdk/gdksurfaceprivate.h
+++ b/gdk/gdksurfaceprivate.h
@@ -110,8 +110,6 @@ struct _GdkSurfaceClass
{
GObjectClass parent_class;
- cairo_surface_t *
- (* ref_cairo_surface) (GdkSurface *surface);
void (* hide) (GdkSurface *surface);
void (* get_geometry) (GdkSurface *surface,
int *x,