mirror of
https://github.com/brl/mutter.git
synced 2025-01-03 08:12:15 +00:00
clutter/eglnative: Remove unused timer
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1364
This commit is contained in:
parent
3958a019bb
commit
5279e9a922
@ -51,32 +51,14 @@
|
|||||||
|
|
||||||
G_DEFINE_TYPE (ClutterBackendEglNative, clutter_backend_egl_native, CLUTTER_TYPE_BACKEND);
|
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
|
static void
|
||||||
clutter_backend_egl_native_class_init (ClutterBackendEglNativeClass *klass)
|
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
|
static void
|
||||||
clutter_backend_egl_native_init (ClutterBackendEglNative *backend_egl_native)
|
clutter_backend_egl_native_init (ClutterBackendEglNative *backend_egl_native)
|
||||||
{
|
{
|
||||||
backend_egl_native->event_timer = g_timer_new ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ClutterBackend *
|
ClutterBackend *
|
||||||
|
@ -55,9 +55,6 @@ struct _ClutterBackendEglNative
|
|||||||
|
|
||||||
/* event source */
|
/* event source */
|
||||||
GSource *event_source;
|
GSource *event_source;
|
||||||
|
|
||||||
/* event timer */
|
|
||||||
GTimer *event_timer;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _ClutterBackendEglNativeClass
|
struct _ClutterBackendEglNativeClass
|
||||||
|
Loading…
Reference in New Issue
Block a user