From 7ac6c3dc9b8777d2e9f7f66bbe2f02a22ca5da71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 25 Jan 2023 20:29:37 +0100 Subject: [PATCH] gmain: Avoid checking for context value in internal function This is something that is supposed to do by the public API, as everywhere else the internal functions should be called with proper parameters instead --- glib/gmain.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/glib/gmain.c b/glib/gmain.c index 7b58e8eba..ec4d24cde 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -3605,9 +3605,6 @@ g_main_context_wait_internal (GMainContext *context, GThread *self = G_THREAD_SELF; gboolean loop_internal_waiter; - if (context == NULL) - context = g_main_context_default (); - loop_internal_waiter = (mutex == &context->mutex); if (!loop_internal_waiter)