[gtk/wip/otte/for-master: 1/2] demos: Remove unused code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 1/2] demos: Remove unused code
- Date: Fri, 22 Oct 2021 22:04:09 +0000 (UTC)
commit a4e83ec584ec7a9056ad1df820d0afd1b399eaae
Author: Benjamin Otte <otte redhat com>
Date: Fri Oct 22 20:54:17 2021 +0200
demos: Remove unused code
demos/gtk-demo/gtkgears.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/demos/gtk-demo/gtkgears.c b/demos/gtk-demo/gtkgears.c
index 1463cbb6b5..44b49b8b09 100644
--- a/demos/gtk-demo/gtkgears.c
+++ b/demos/gtk-demo/gtkgears.c
@@ -874,8 +874,8 @@ gtk_gears_tick (GtkWidget *widget,
{
GtkGears *gears = GTK_GEARS (widget);
GtkGearsPrivate *priv = gtk_gears_get_instance_private (gears);
- GdkFrameTimings *timings, *previous_timings;
- gint64 previous_frame_time = 0;
+ GdkFrameTimings *previous_timings;
+ gint64 previous_frame_time;
gint64 frame_time;
gint64 history_start, history_len;
gint64 frame;
@@ -915,12 +915,6 @@ gtk_gears_tick (GtkWidget *widget,
}
}
- timings = gdk_frame_clock_get_current_timings (frame_clock);
- previous_timings = gdk_frame_clock_get_timings (frame_clock,
- gdk_frame_timings_get_frame_counter (timings) - 1);
- if (previous_timings != NULL)
- previous_frame_time = gdk_frame_timings_get_frame_time (previous_timings);
-
return G_SOURCE_CONTINUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]