aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:09:52 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:10 +0800
commitb9bb0f42712f601c11fcd3d312910da0fd72b6ed (patch)
tree59caf7117a997791935ec662e0ae0e5e8db1b1cb /libempathy
parent63980054c4e8ec5d63b9da9a0de1d13c45bfd1a2 (diff)
downloadgsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.tar
gsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.tar.gz
gsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.tar.bz2
gsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.tar.lz
gsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.tar.xz
gsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.tar.zst
gsoc2013-empathy-b9bb0f42712f601c11fcd3d312910da0fd72b6ed.zip
Don't need to check twice if location has latitude
There is no need to check for lon as lat, lon as always set togeter (they are meaningless alone).
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-factory.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index cd7824a7a..cfdbf8c94 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -511,7 +511,6 @@ tp_contact_factory_geocode (EmpathyContact *contact)
geocode_cb, contact);
g_hash_table_unref (address);
- return;
#endif
}
@@ -522,7 +521,6 @@ tp_contact_factory_update_location (EmpathyTpContactFactory *tp_factory,
{
EmpathyContact *contact;
GHashTable *new_location;
- GValue *value;
contact = tp_contact_factory_find_by_handle (tp_factory, handle);
@@ -536,10 +534,7 @@ tp_contact_factory_update_location (EmpathyTpContactFactory *tp_factory,
empathy_contact_set_location (contact, new_location);
g_hash_table_unref (new_location);
- value = g_hash_table_lookup (location, EMPATHY_LOCATION_LAT);
- if (value == NULL) {
- tp_contact_factory_geocode (contact);
- }
+ tp_contact_factory_geocode (contact);
}
static void