[telepathy-mission-control/master] McdDispatcher: get_channel_filter_cb: remove pointless check for client disappearance

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Sep 22 07:54:04 PDT 2009


TpProxy guarantees that the McdClientProxy still exists, so this guard
isn't needed.
---
 src/mcd-dispatcher.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index c7c1360..90deadd 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1781,23 +1781,10 @@ get_channel_filter_cb (TpProxy *proxy,
                        GObject *weak_object)
 {
     McdDispatcher *self = MCD_DISPATCHER (weak_object);
-    McdClientProxy *client;
-    const gchar *bus_name = tp_proxy_get_bus_name (proxy);
-
-    client = g_hash_table_lookup (self->priv->clients, bus_name);
-
-    if (G_UNLIKELY (client == NULL))
-    {
-        DEBUG ("Client %s vanished while we were getting its Client filters",
-               bus_name);
-        goto finally;
-    }
 
     _mcd_client_proxy_set_channel_filters (MCD_CLIENT_PROXY (proxy),
                                            value, error,
                                            GPOINTER_TO_UINT (user_data));
-
-finally:
     mcd_dispatcher_release_startup_lock (self);
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list