[gtk: 1/4] wayland/surface: Remove 'committed' signal




commit f87de393b57fbae0a96b59cb0b53a1f7c4e64d17
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Sep 17 16:00:40 2020 +0200

    wayland/surface: Remove 'committed' signal
    
    It wasn't used by anything anymore, lets remove it.

 gdk/wayland/gdksurface-wayland.c | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 99af132356..7ac0a78263 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -45,14 +45,6 @@
 #include <string.h>
 #include <errno.h>
 
-enum {
-  COMMITTED,
-
-  LAST_SIGNAL
-};
-
-static guint signals[LAST_SIGNAL];
-
 #define SURFACE_IS_TOPLEVEL(surface)  TRUE
 
 #define MAX_WL_BUFFER_SIZE (4083) /* 4096 minus header, string argument length and NUL byte */
@@ -645,8 +637,6 @@ on_frame_clock_after_paint (GdkFrameClock *clock,
       wl_surface_commit (impl->display_server.wl_surface);
 
       impl->pending_commit = FALSE;
-
-      g_signal_emit (impl, signals[COMMITTED], 0);
     }
 
   if (impl->awaiting_frame &&
@@ -4026,13 +4016,6 @@ gdk_wayland_surface_class_init (GdkWaylandSurfaceClass *klass)
   impl_class->set_opaque_region = gdk_wayland_surface_set_opaque_region;
   impl_class->set_shadow_width = gdk_wayland_surface_set_shadow_width;
   impl_class->create_gl_context = gdk_wayland_surface_create_gl_context;
-
-  signals[COMMITTED] = g_signal_new (g_intern_static_string ("committed"),
-                                     G_TYPE_FROM_CLASS (object_class),
-                                     G_SIGNAL_RUN_LAST,
-                                     0,
-                                     NULL, NULL, NULL,
-                                     G_TYPE_NONE, 0);
 }
 
 void


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