[Telepathy-commits] [telepathy-mission-control/master] Remove wrong warning.

Alberto Mardegan alberto.mardegan at nokia.com
Fri Feb 6 03:22:34 PST 2009


It's not an error, nor it is unlikely, that there are no callbacks registered
to the object's readiness event.
---
 src/mcd-misc.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/mcd-misc.c b/src/mcd-misc.c
index dce39db..06b8449 100644
--- a/src/mcd-misc.c
+++ b/src/mcd-misc.c
@@ -251,11 +251,7 @@ mcd_object_ready (gpointer object, GQuark quark, const GError *error)
     McdReadyData *rd;
 
     rd = g_object_get_qdata ((GObject *)object, quark);
-    if (G_UNLIKELY (!rd))
-    {
-        g_warning ("%s: callback data is missing", G_STRFUNC);
-        return;
-    }
+    if (!rd) return;
 
     mcd_object_invoke_ready_callbacks (rd, error);
     rd->object = NULL; /* so the callbacks won't be invoked again */
-- 
1.5.6.5




More information about the telepathy-commits mailing list