From 9b19d37cb9c41546648fd5eee81fff46e78f871c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 20 Aug 2006 22:37:43 +0000 Subject: A little code cleanup --- common/glib-ectomy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/glib-ectomy.c b/common/glib-ectomy.c index f4e552cd..2f674cbc 100644 --- a/common/glib-ectomy.c +++ b/common/glib-ectomy.c @@ -238,7 +238,6 @@ static void timeout_handlers_check(GMainContext *context) context->processed = NULL; while (context->ltimeout) { - struct slist *match; glong secs, msecs; gboolean ret; @@ -255,9 +254,7 @@ static void timeout_handlers_check(GMainContext *context) /* Check if the handler was removed/freed by the callback * function */ - match = slist_find(context->ltimeout, t, timeout_cmp); - - if (!match) + if (!slist_find(context->ltimeout, t, timeout_cmp)) continue; if (!ret) { -- cgit