[geocode-glib] lib: Simplify geocode_reverse_resolve_finish()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] lib: Simplify geocode_reverse_resolve_finish()
- Date: Thu, 21 Mar 2013 07:58:52 +0000 (UTC)
commit 9661189453c4b0eb118599fcfc67df36cdd51102
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 6 12:54:37 2013 +0100
lib: Simplify geocode_reverse_resolve_finish()
geocode-glib/geocode-reverse.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/geocode-glib/geocode-reverse.c b/geocode-glib/geocode-reverse.c
index 2c1e0a2..89470db 100644
--- a/geocode-glib/geocode-reverse.c
+++ b/geocode-glib/geocode-reverse.c
@@ -513,26 +513,20 @@ geocode_reverse_resolve_async (GeocodeReverse *object,
* Free the returned string with g_hash_table_destroy() when done.
**/
GHashTable *
-geocode_reverse_resolve_finish (GeocodeReverse *object,
+geocode_reverse_resolve_finish (GeocodeReverse *object,
GAsyncResult *res,
GError **error)
{
GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (res);
- GHashTable *ret;
g_return_val_if_fail (GEOCODE_IS_REVERSE (object), NULL);
g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == geocode_reverse_resolve_async);
- ret = NULL;
-
if (g_simple_async_result_propagate_error (simple, error))
- goto out;
-
- ret = g_simple_async_result_get_op_res_gpointer (simple);
+ return NULL;
-out:
- return ret;
+ return g_simple_async_result_get_op_res_gpointer (simple);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]