From a244924636a2a0cde9da06909ac2b1b141ce3b9e Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 7 Jul 2010 13:26:19 +0100 Subject: Remove folks_individual_dup_from_empathy_contact() As EmpathyContact is now a wrapper around FolksPersona, we can mutate the persona instead of acquiring an individual and mutating that instead. --- libempathy/empathy-utils.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'libempathy/empathy-utils.c') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index d460f5582..9a5e28c17 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -621,38 +621,6 @@ empathy_contact_dup_from_folks_individual (FolksIndividual *individual) return contact; } -/* TODO: This also needs to be eliminated, and is horrifically slow. */ - -/* Retrieve the first Individual containing a TpContact that corresponds to the - * given EmpathyContact. Note that this is a temporary convenience. See - * the TODO above. */ -FolksIndividual * -folks_individual_dup_from_empathy_contact (EmpathyContact *contact) -{ - EmpathyIndividualManager *manager; - FolksIndividual *individual = NULL; - GList *individuals, *l; - - manager = empathy_individual_manager_dup_singleton (); - individuals = empathy_individual_manager_get_members (manager); - - for (l = individuals; (l != NULL) && (individual == NULL); l = l->next) - { - FolksIndividual *i = FOLKS_INDIVIDUAL (l->data); - EmpathyContact *c = empathy_contact_dup_from_folks_individual (i); - - if (c == contact) - individual = g_object_ref (i); - - g_object_unref (c); - } - - g_list_free (individuals); - g_object_unref (manager); - - return individual; -} - TpChannelGroupChangeReason tp_chanel_group_change_reason_from_folks_groups_change_reason ( FolksGroupsChangeReason reason) -- cgit v1.2.3