From 5279e9a9228f0afd91edcd61d785e906ccc3056f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 9 Jul 2020 21:20:41 +0200 Subject: [PATCH] clutter/eglnative: Remove unused timer https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1364 --- .../clutter/egl/clutter-backend-eglnative.c | 18 ------------------ .../clutter/egl/clutter-backend-eglnative.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/clutter/clutter/egl/clutter-backend-eglnative.c b/clutter/clutter/egl/clutter-backend-eglnative.c index 0b6597f1c..0c3144976 100644 --- a/clutter/clutter/egl/clutter-backend-eglnative.c +++ b/clutter/clutter/egl/clutter-backend-eglnative.c @@ -51,32 +51,14 @@ G_DEFINE_TYPE (ClutterBackendEglNative, clutter_backend_egl_native, CLUTTER_TYPE_BACKEND); -static void -clutter_backend_egl_native_dispose (GObject *gobject) -{ - ClutterBackendEglNative *backend_egl_native = CLUTTER_BACKEND_EGL_NATIVE (gobject); - - if (backend_egl_native->event_timer != NULL) - { - g_timer_destroy (backend_egl_native->event_timer); - backend_egl_native->event_timer = NULL; - } - - G_OBJECT_CLASS (clutter_backend_egl_native_parent_class)->dispose (gobject); -} - static void clutter_backend_egl_native_class_init (ClutterBackendEglNativeClass *klass) { - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->dispose = clutter_backend_egl_native_dispose; } static void clutter_backend_egl_native_init (ClutterBackendEglNative *backend_egl_native) { - backend_egl_native->event_timer = g_timer_new (); } ClutterBackend * diff --git a/clutter/clutter/egl/clutter-backend-eglnative.h b/clutter/clutter/egl/clutter-backend-eglnative.h index 6c0412e81..3a884c4cd 100644 --- a/clutter/clutter/egl/clutter-backend-eglnative.h +++ b/clutter/clutter/egl/clutter-backend-eglnative.h @@ -55,9 +55,6 @@ struct _ClutterBackendEglNative /* event source */ GSource *event_source; - - /* event timer */ - GTimer *event_timer; }; struct _ClutterBackendEglNativeClass