From 0923e12fa3c4fc8719df1ac1c9ed5f2361f3be8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 1 Mar 2025 00:18:35 +0100 Subject: [PATCH] pipewire: module-rt: have just one `impl_thread_utils` There are two definitions depending on `#ifdef HAVE_DBUS`, however, the two definitions are indentical, so remove one. --- src/modules/module-rt.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index d1f14eef6..6ba838e22 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -858,15 +858,6 @@ static int impl_acquire_rt(void *object, struct spa_thread *thread, int priority } } -static const struct spa_thread_utils_methods impl_thread_utils = { - SPA_VERSION_THREAD_UTILS_METHODS, - .create = impl_create, - .join = impl_join, - .get_rt_range = impl_get_rt_range, - .acquire_rt = impl_acquire_rt, - .drop_rt = impl_drop_rt_generic, -}; - #else /* HAVE_DBUS */ static struct spa_thread *impl_create(void *object, const struct spa_dict *props, @@ -897,6 +888,8 @@ static int impl_acquire_rt(void *object, struct spa_thread *thread, int priority return acquire_rt_sched(thread, priority); } +#endif /* HAVE_DBUS */ + static const struct spa_thread_utils_methods impl_thread_utils = { SPA_VERSION_THREAD_UTILS_METHODS, .create = impl_create, @@ -905,8 +898,6 @@ static const struct spa_thread_utils_methods impl_thread_utils = { .acquire_rt = impl_acquire_rt, .drop_rt = impl_drop_rt_generic, }; -#endif /* HAVE_DBUS */ - #ifdef HAVE_DBUS static bool check_rtkit(struct pw_context *context)