telepathy-mission-control: _mcd_dispatcher_get_channel_enhanced_capabilities: remove, unused
Simon McVittie
smcv at kemper.freedesktop.org
Thu May 10 08:15:15 PDT 2012
Module: telepathy-mission-control
Branch: master
Commit: ab92d3f1f2775854fbe801023a04df6839d639ac
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=ab92d3f1f2775854fbe801023a04df6839d639ac
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue May 8 14:16:29 2012 +0100
_mcd_dispatcher_get_channel_enhanced_capabilities: remove, unused
This was left over from ContactCapabilities.DRAFT1.
---
src/mcd-dispatcher-priv.h | 5 ---
src/mcd-dispatcher.c | 65 ---------------------------------------------
2 files changed, 0 insertions(+), 70 deletions(-)
diff --git a/src/mcd-dispatcher-priv.h b/src/mcd-dispatcher-priv.h
index 89f02aa..16d3a82 100644
--- a/src/mcd-dispatcher-priv.h
+++ b/src/mcd-dispatcher-priv.h
@@ -38,11 +38,6 @@ G_BEGIN_DECLS
G_GNUC_INTERNAL GPtrArray *_mcd_dispatcher_get_channel_capabilities (
McdDispatcher *dispatcher);
-/* retrieves the channel handlers' capabilities, in a format suitable for being
- * used as a parameter for the telepathy "SetSelfCapabilities" method */
-G_GNUC_INTERNAL GPtrArray *_mcd_dispatcher_get_channel_enhanced_capabilities (
- McdDispatcher *dispatcher);
-
/* not exported */
G_GNUC_INTERNAL void _mcd_dispatcher_take_channels (
McdDispatcher *dispatcher, GList *channels, gboolean requested,
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 01cd5ed..12be1c7 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -265,30 +265,6 @@ on_master_abort (McdMaster *master, McdDispatcherPrivate *priv)
tp_clear_object (&priv->master);
}
-/* return TRUE if the two channel classes are equals
- */
-static gboolean
-channel_classes_equals (GHashTable *channel_class1, GHashTable *channel_class2)
-{
- GHashTableIter iter;
- gchar *property_name;
- GValue *property_value;
-
- if (g_hash_table_size (channel_class1) !=
- g_hash_table_size (channel_class2))
- return FALSE;
-
- g_hash_table_iter_init (&iter, channel_class1);
- while (g_hash_table_iter_next (&iter, (gpointer *) &property_name,
- (gpointer *) &property_value))
- {
- if (!_mcd_client_match_property (channel_class2, property_name,
- property_value))
- return FALSE;
- }
- return TRUE;
-}
-
static GStrv
mcd_dispatcher_dup_internal_handlers (void)
{
@@ -1386,47 +1362,6 @@ _mcd_dispatcher_get_channel_capabilities (McdDispatcher *dispatcher)
return channel_handler_caps;
}
-GPtrArray *
-_mcd_dispatcher_get_channel_enhanced_capabilities (McdDispatcher *dispatcher)
-{
- McdDispatcherPrivate *priv = dispatcher->priv;
- GHashTableIter iter;
- gpointer key, value;
- GPtrArray *caps = g_ptr_array_new ();
-
- _mcd_client_registry_init_hash_iter (priv->clients, &iter);
- while (g_hash_table_iter_next (&iter, &key, &value))
- {
- McdClientProxy *client = value;
- const GList *list;
-
- for (list = _mcd_client_proxy_get_handler_filters (client);
- list != NULL;
- list = list->next)
- {
- GHashTable *channel_class = list->data;
- guint i;
- gboolean already_in_caps = FALSE;
-
- /* Check if the filter is already in the caps variable */
- for (i = 0 ; i < caps->len ; i++)
- {
- GHashTable *channel_class2 = g_ptr_array_index (caps, i);
- if (channel_classes_equals (channel_class, channel_class2))
- {
- already_in_caps = TRUE;
- break;
- }
- }
-
- if (! already_in_caps)
- g_ptr_array_add (caps, channel_class);
- }
- }
-
- return caps;
-}
-
/*
* _mcd_dispatcher_take_channels:
* @dispatcher: the #McdDispatcher.
More information about the telepathy-commits
mailing list