aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-28 21:56:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-02 15:28:47 +0800
commite511539f836d06b5ca05ffabccbce4e432f6b0c7 (patch)
treefab7671b1dbb93e58f83366a654063eb17432fa1 /libempathy
parent7b79bb85f4ff7693ba24c8a94cdcfd9889b567bd (diff)
downloadgsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.tar
gsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.tar.gz
gsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.tar.bz2
gsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.tar.lz
gsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.tar.xz
gsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.tar.zst
gsoc2013-empathy-e511539f836d06b5ca05ffabccbce4e432f6b0c7.zip
remove empathy_individual_manager_lookup_by_contact()
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-individual-manager.c52
-rw-r--r--libempathy/empathy-individual-manager.h4
2 files changed, 0 insertions, 56 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 68b094ef1..a1ca269c6 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -763,55 +763,3 @@ empathy_individual_manager_get_contacts_loaded (EmpathyIndividualManager *self)
return priv->contacts_loaded;
}
-
-static gboolean
-individual_has_contact (FolksIndividual *individual,
- TpContact *contact)
-{
- GeeSet *personas;
- GeeIterator *iter;
- gboolean found = FALSE;
-
- personas = folks_individual_get_personas (individual);
- iter = gee_iterable_iterator (GEE_ITERABLE (personas));
-
- while (!found && gee_iterator_next (iter))
- {
- TpfPersona *persona = gee_iterator_get (iter);
-
- if (TPF_IS_PERSONA (persona))
- {
- TpContact *c = tpf_persona_get_contact (persona);
-
- if (c == contact)
- found = TRUE;
- }
-
- g_clear_object (&persona);
- }
-
- g_clear_object (&iter);
-
- return found;
-}
-
-/* Try finding a FolksIndividual containing @contact as one of his persona */
-FolksIndividual *
-empathy_individual_manager_lookup_by_contact (EmpathyIndividualManager *self,
- TpContact *contact)
-{
- EmpathyIndividualManagerPriv *priv = GET_PRIV (self);
- GHashTableIter iter;
- gpointer value;
-
- g_hash_table_iter_init (&iter, priv->individuals);
- while (g_hash_table_iter_next (&iter, NULL, &value))
- {
- FolksIndividual *individual = value;
-
- if (individual_has_contact (individual, contact))
- return individual;
- }
-
- return NULL;
-}
diff --git a/libempathy/empathy-individual-manager.h b/libempathy/empathy-individual-manager.h
index 08a1faade..ec7603882 100644
--- a/libempathy/empathy-individual-manager.h
+++ b/libempathy/empathy-individual-manager.h
@@ -93,9 +93,5 @@ void empathy_individual_manager_set_blocked (EmpathyIndividualManager *self,
gboolean empathy_individual_manager_get_contacts_loaded (
EmpathyIndividualManager *self);
-FolksIndividual * empathy_individual_manager_lookup_by_contact (
- EmpathyIndividualManager *self,
- TpContact *contact);
-
G_END_DECLS
#endif /* __EMPATHY_INDIVIDUAL_MANAGER_H__ */