From 67869e50ff885ea10280447edbe6ee22520e26cb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 29 Nov 2011 14:16:15 +0100 Subject: remove old school get_all_groups https://bugzilla.gnome.org/show_bug.cgi?id=665121 --- libempathy/empathy-contact-manager.c | 37 ------------------------------------ 1 file changed, 37 deletions(-) (limited to 'libempathy/empathy-contact-manager.c') diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c index 1ec6cba18..fd2b3e1a4 100644 --- a/libempathy/empathy-contact-manager.c +++ b/libempathy/empathy-contact-manager.c @@ -415,42 +415,6 @@ contact_manager_get_pendings (EmpathyContactList *manager) return contacts; } -static void -contact_manager_get_all_groups_foreach (TpConnection *connection, - EmpathyTpContactList *list, - GList **all_groups) -{ - GList *groups, *l; - - groups = empathy_contact_list_get_all_groups (EMPATHY_CONTACT_LIST (list)); - for (l = groups; l; l = l->next) { - if (!g_list_find_custom (*all_groups, - l->data, - (GCompareFunc) strcmp)) { - *all_groups = g_list_prepend (*all_groups, l->data); - } else { - g_free (l->data); - } - } - - g_list_free (groups); -} - -static GList * -contact_manager_get_all_groups (EmpathyContactList *manager) -{ - EmpathyContactManagerPriv *priv = GET_PRIV (manager); - GList *groups = NULL; - - g_return_val_if_fail (EMPATHY_IS_CONTACT_MANAGER (manager), NULL); - - g_hash_table_foreach (priv->lists, - (GHFunc) contact_manager_get_all_groups_foreach, - &groups); - - return groups; -} - static GList * contact_manager_get_groups (EmpathyContactList *manager, EmpathyContact *contact) @@ -569,7 +533,6 @@ contact_manager_iface_init (EmpathyContactListIface *iface) iface->remove = contact_manager_remove; iface->get_members = contact_manager_get_members; iface->get_pendings = contact_manager_get_pendings; - iface->get_all_groups = contact_manager_get_all_groups; iface->get_groups = contact_manager_get_groups; iface->add_to_group = contact_manager_add_to_group; iface->remove_from_group = contact_manager_remove_from_group; -- cgit v1.2.3