[mutter] clutter/eglnative: Remove unused timer
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/eglnative: Remove unused timer
- Date: Thu, 13 Aug 2020 16:00:30 +0000 (UTC)
commit 5279e9a9228f0afd91edcd61d785e906ccc3056f
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Jul 9 21:20:41 2020 +0200
clutter/eglnative: Remove unused timer
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1364
clutter/clutter/egl/clutter-backend-eglnative.c | 18 ------------------
clutter/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 0b6597f1c2..0c31449769 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 6c0412e812..3a884c4cd4 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]