aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-10 04:42:12 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-10 05:22:23 +0800
commitef63fc4cdc7bda74694a8a2af379e4c060a82e79 (patch)
treefec36257e465b06dd9a78c88f1cd00936d8590ef
parentc074b43f01aec761dbc1ab61ae7d115cdae36d10 (diff)
downloadgsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.tar
gsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.tar.gz
gsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.tar.bz2
gsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.tar.lz
gsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.tar.xz
gsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.tar.zst
gsoc2013-empathy-ef63fc4cdc7bda74694a8a2af379e4c060a82e79.zip
Drop tp_contact_factory_update_location for code readability
This function is an artefact from previous version of this functionality
-rw-r--r--libempathy/empathy-tp-contact-factory.c27
1 files changed, 7 insertions, 20 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index 4ab5fd4ba..0a118d636 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -315,21 +315,6 @@ tp_contact_factory_avatar_updated_cb (TpConnection *connection,
}
static void
-tp_contact_factory_update_location (EmpathyTpContactFactory *tp_factory,
- guint handle,
- GHashTable *location)
-{
- EmpathyContact *contact;
-
- contact = tp_contact_factory_find_by_handle (tp_factory, handle);
- if (contact == NULL) {
- return;
- }
-
- empathy_contact_set_location (contact, location);
-}
-
-static void
tp_contact_factory_update_capabilities (EmpathyTpContactFactory *tp_factory,
guint handle,
const gchar *channel_type,
@@ -424,12 +409,14 @@ tp_contact_factory_got_locations (TpProxy *tp_proxy,
g_hash_table_iter_init (&iter, locations);
while (g_hash_table_iter_next (&iter, &key, &value)) {
- guint handle = GPOINTER_TO_INT (key);
- GHashTable *location = value;
+ guint handle = GPOINTER_TO_INT (key);
+ GHashTable *location = value;
+ EmpathyContact *contact;
- tp_contact_factory_update_location (tp_factory,
- handle,
- location);
+ contact = tp_contact_factory_find_by_handle (tp_factory, handle);
+ if (contact != NULL) {
+ empathy_contact_set_location (contact, location);
+ }
}
}