diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-22 02:09:16 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-25 18:51:53 +0800 |
commit | 96f2a474e0cdc5f8fe8a482d14a1a97c519def3a (patch) | |
tree | eab3cbdb8cc7f9d79c1f309f1c1fcdf7731facb7 /libempathy/empathy-utils.c | |
parent | 8defe68d6698b61146f4c91aa7fed82babc5a868 (diff) | |
download | gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.tar gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.tar.gz gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.tar.bz2 gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.tar.lz gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.tar.xz gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.tar.zst gsoc2013-empathy-96f2a474e0cdc5f8fe8a482d14a1a97c519def3a.zip |
libempathy: Remove empathy_create_individual_from_tp_contact()
It has been replaced by empathy_ensure_individual_from_tp_contact(),
which can’t cause internal state corruption in libfolks by wrapping an
existing Persona in a second Individual when it’s already wrapped in
one.
This has also been fixed in libfolks.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1031252
https://bugzilla.gnome.org/show_bug.cgi?id=712839
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 4555d4144..9ee9606cc 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -946,26 +946,6 @@ create_individual_from_persona (FolksPersona *persona) return individual; } -FolksIndividual * -empathy_create_individual_from_tp_contact (TpContact *contact) -{ - TpfPersona *persona; - FolksIndividual *individual; - - persona = tpf_persona_dup_for_contact (contact); - if (persona == NULL) - { - DEBUG ("Failed to get a persona for %s", - tp_contact_get_identifier (contact)); - return NULL; - } - - individual = create_individual_from_persona (FOLKS_PERSONA (persona)); - - g_object_unref (persona); - return individual; -} - /* Look for a FolksIndividual containing @contact as one of his persona * and create one if needed */ FolksIndividual * |