From 44c09dcefee5b3f8d1ae431a5f6ca8b200e8db46 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Wed, 15 Dec 2021 17:06:54 +0800 Subject: [PATCH] clutter: Remove unused time_us parameter from ClutterFrameListenerIface Part-of: --- clutter/clutter/clutter-frame-clock.c | 1 - clutter/clutter/clutter-frame-clock.h | 1 - clutter/clutter/clutter-stage-view.c | 1 - src/tests/clutter/conform/frame-clock-timeline.c | 1 - src/tests/clutter/conform/frame-clock.c | 9 --------- 5 files changed, 13 deletions(-) diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c index 9be9898ee..a1687415a 100644 --- a/clutter/clutter/clutter-frame-clock.c +++ b/clutter/clutter/clutter-frame-clock.c @@ -650,7 +650,6 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock, COGL_TRACE_BEGIN (ClutterFrameClockFrame, "Frame Clock (frame)"); result = frame_clock->listener.iface->frame (frame_clock, frame_count, - time_us, frame_clock->listener.user_data); COGL_TRACE_END (ClutterFrameClockFrame); diff --git a/clutter/clutter/clutter-frame-clock.h b/clutter/clutter/clutter-frame-clock.h index e71b54987..91e6b3a13 100644 --- a/clutter/clutter/clutter-frame-clock.h +++ b/clutter/clutter/clutter-frame-clock.h @@ -50,7 +50,6 @@ typedef struct _ClutterFrameListenerIface gpointer user_data); ClutterFrameResult (* frame) (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data); } ClutterFrameListenerIface; diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c index 9b7345983..ea7f57248 100644 --- a/clutter/clutter/clutter-stage-view.c +++ b/clutter/clutter/clutter-stage-view.c @@ -1146,7 +1146,6 @@ end_frame_timing_measurement (ClutterStageView *view) static ClutterFrameResult handle_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { ClutterStageView *view = user_data; diff --git a/src/tests/clutter/conform/frame-clock-timeline.c b/src/tests/clutter/conform/frame-clock-timeline.c index ff90b60b1..fe001b55c 100644 --- a/src/tests/clutter/conform/frame-clock-timeline.c +++ b/src/tests/clutter/conform/frame-clock-timeline.c @@ -7,7 +7,6 @@ static const int64_t refresh_interval_us = G_USEC_PER_SEC / refresh_rate; static ClutterFrameResult timeline_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { ClutterFrameInfo frame_info; diff --git a/src/tests/clutter/conform/frame-clock.c b/src/tests/clutter/conform/frame-clock.c index 810c39a02..cf118de1b 100644 --- a/src/tests/clutter/conform/frame-clock.c +++ b/src/tests/clutter/conform/frame-clock.c @@ -92,7 +92,6 @@ fake_hw_clock_new (ClutterFrameClock *frame_clock, static ClutterFrameResult frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { FrameClockTest *test = user_data; @@ -187,7 +186,6 @@ schedule_update_idle (gpointer user_data) static ClutterFrameResult immediate_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { GMainLoop *main_loop = user_data; @@ -262,7 +260,6 @@ schedule_update_timeout (gpointer user_data) static ClutterFrameResult delayed_damage_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { FrameClockTest *test = user_data; @@ -336,7 +333,6 @@ frame_clock_delayed_damage (void) static ClutterFrameResult no_damage_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { g_assert_not_reached (); @@ -390,7 +386,6 @@ typedef struct _UpdateNowFrameClockTest static ClutterFrameResult update_now_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { UpdateNowFrameClockTest *test = user_data; @@ -497,7 +492,6 @@ before_frame_frame_clock_before_frame (ClutterFrameClock *frame_clock, static ClutterFrameResult before_frame_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { int64_t *expected_frame_count = user_data; @@ -567,7 +561,6 @@ typedef struct _InhibitTest static ClutterFrameResult inhibit_frame_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { InhibitTest *test = user_data; @@ -645,7 +638,6 @@ typedef struct _RescheduleOnIdleFrameClockTest static ClutterFrameResult reschedule_on_idle_clock_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { RescheduleOnIdleFrameClockTest *test = user_data; @@ -773,7 +765,6 @@ notify_ready_and_schedule_update_idle (gpointer user_data) static ClutterFrameResult frame_clock_ready_frame (ClutterFrameClock *frame_clock, int64_t frame_count, - int64_t time_us, gpointer user_data) { GMainLoop *main_loop = user_data;