[empathy] No reason to get Channels from connections, that's MCs job



commit 0e74039b5cadb3e33aa01f5c2f3650b9d39f16ae
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Thu Feb 25 15:18:10 2010 +0000

    No reason to get Channels from connections, that's MCs job

 libempathy/empathy-dispatcher.c |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 8577b6b..f589099 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]