diff options
author | Timm Bäder <mail@baedert.org> | 2020-09-15 05:28:31 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-09-15 05:28:31 +0200 |
commit | a545fa15e4eaf1b199e8e25818eeee5bbe3ba0d0 (patch) | |
tree | c65c87b8f46d17d77eba2c9550a113ba1c579e8e | |
parent | e669433cde60068099c7c03235475673d0ed7db4 (diff) | |
download | gtk+-a545fa15e4eaf1b199e8e25818eeee5bbe3ba0d0.tar.gz |
inspector: Remove unsued function
-rw-r--r-- | gtk/inspector/fpsoverlay.c | 34 |
1 files changed, 0 insertions, 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) { |