From 0e74039b5cadb3e33aa01f5c2f3650b9d39f16ae Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Thu, 25 Feb 2010 15:18:10 +0000 Subject: No reason to get Channels from connections, that's MCs job --- libempathy/empathy-dispatcher.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index 8577b6bb7..f589099d6 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -722,7 +722,6 @@ dispatcher_connection_got_all (TpProxy *proxy, EmpathyDispatcher *self = EMPATHY_DISPATCHER (object); EmpathyDispatcherPriv *priv = GET_PRIV (self); GPtrArray *requestable_channels; - GPtrArray *existing_channels; if (error) { DEBUG ("Error: %s", error->message); @@ -767,32 +766,6 @@ dispatcher_connection_got_all (TpProxy *proxy, g_hash_table_remove (priv->outstanding_classes_requests, proxy); } - - existing_channels = tp_asv_get_boxed (properties, - "Channels", TP_ARRAY_TYPE_CHANNEL_DETAILS_LIST); - - if (existing_channels != NULL) - { - guint idx; - - for (idx = 0; idx < existing_channels->len; idx++) - { - GValueArray *values = g_ptr_array_index (existing_channels, idx); - const gchar *object_path; - GHashTable *props; - - object_path = g_value_get_boxed (g_value_array_get_nth (values, 0)); - props = g_value_get_boxed (g_value_array_get_nth (values, 1)); - - if (tp_strdiff (tp_asv_get_string (props, - TP_IFACE_CHANNEL ".ChannelType"), - TP_IFACE_CHANNEL_TYPE_TEXT)) - continue; - - dispatcher_connection_new_channel_with_properties (self, - TP_CONNECTION (proxy), object_path, properties, NULL); - } - } } static void -- cgit v1.2.3