[gtk/wip/baedert/for-master] inspector: Remove unsued function
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] inspector: Remove unsued function
- Date: Tue, 15 Sep 2020 03:28:42 +0000 (UTC)
commit a545fa15e4eaf1b199e8e25818eeee5bbe3ba0d0
Author: Timm Bäder <mail baedert org>
Date: Tue Sep 15 05:28:31 2020 +0200
inspector: Remove unsued function
gtk/inspector/fpsoverlay.c | 34 ----------------------------------
1 file changed, 34 deletions(-)
---
diff --git a/gtk/inspector/fpsoverlay.c b/gtk/inspector/fpsoverlay.c
index b68238deb1..1329738a0d 100644
--- a/gtk/inspector/fpsoverlay.c
+++ b/gtk/inspector/fpsoverlay.c
@@ -60,40 +60,6 @@ gtk_fps_info_free (gpointer data)
g_slice_free (GtkFpsInfo, info);
}
-static gint64
-guess_refresh_interval (GdkFrameClock *frame_clock)
-{
- gint64 interval;
- gint64 i;
-
- interval = G_MAXINT64;
-
- for (i = gdk_frame_clock_get_history_start (frame_clock);
- i < gdk_frame_clock_get_frame_counter (frame_clock);
- i++)
- {
- GdkFrameTimings *t, *before;
- gint64 ts, before_ts;
-
- t = gdk_frame_clock_get_timings (frame_clock, i);
- before = gdk_frame_clock_get_timings (frame_clock, i - 1);
- if (t == NULL || before == NULL)
- continue;
-
- ts = gdk_frame_timings_get_frame_time (t);
- before_ts = gdk_frame_timings_get_frame_time (before);
- if (ts == 0 || before_ts == 0)
- continue;
-
- interval = MIN (interval, ts - before_ts);
- }
-
- if (interval == G_MAXINT64)
- return 0;
-
- return interval;
-}
-
static double
gtk_fps_overlay_get_fps (GtkWidget *widget)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]