diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-10-07 14:47:36 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-11-05 12:28:32 +0000 |
commit | be3658ad0df3a4a81d66e255cecd559dcaa69ec3 (patch) | |
tree | 9713a66b156ca8acd003c1c00798a062447bb9c8 /src/salut-ft-manager.c | |
parent | 9e348a4b7be07c544bcae015e08b1f0c157e5959 (diff) |
SalutCapsChannelManagerGetContactCapsFunc: remove, unused
Diffstat (limited to 'src/salut-ft-manager.c')
-rw-r--r-- | src/salut-ft-manager.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/salut-ft-manager.c b/src/salut-ft-manager.c index 25b3510c..ae2ca7a9 100644 --- a/src/salut-ft-manager.c +++ b/src/salut-ft-manager.c @@ -572,45 +572,6 @@ add_file_transfer_channel_class (GPtrArray *arr) g_ptr_array_add (arr, g_value_get_boxed (&monster)); } -static void -salut_ft_manager_get_contact_caps (SalutCapsChannelManager *manager, - SalutConnection *conn, - TpHandle handle, - GPtrArray *arr) -{ - SalutFtManager *self = SALUT_FT_MANAGER (manager); - SalutFtManagerPrivate *priv = SALUT_FT_MANAGER_GET_PRIVATE (self); - TpBaseConnection *base = (TpBaseConnection *) conn; - SalutContact *contact; - FtCapaStatus caps; - - g_assert (handle != 0); - - if (handle == base->self_handle) - { - /* We support file transfer */ - add_file_transfer_channel_class (arr); - return; - } - - contact = salut_contact_manager_get_contact (priv->contact_manager, handle); - if (contact == NULL) - return; - g_object_unref (contact); - - if (contact->per_channel_manager_caps == NULL) - return; - - caps = GPOINTER_TO_UINT (g_hash_table_lookup ( - contact->per_channel_manager_caps, manager)); - - if (caps == FT_CAPA_UNSUPPORTED) - return; - - /* FT is supported */ - add_file_transfer_channel_class (arr); -} - static gboolean _parse_caps_item (GibberXmppNode *node, gpointer user_data) @@ -681,7 +642,6 @@ caps_channel_manager_iface_init (gpointer g_iface, { SalutCapsChannelManagerIface *iface = g_iface; - iface->get_contact_caps = salut_ft_manager_get_contact_caps; iface->parse_caps = salut_ft_manager_parse_caps; iface->copy_caps = salut_ft_manager_copy_caps; iface->caps_diff = salut_ft_manager_caps_diff; |