diff options
Diffstat (limited to 'rest')
-rw-r--r-- | rest/rest-proxy-call.c | 14 | ||||
-rw-r--r-- | rest/rest-proxy-call.h | 3 |
2 files changed, 3 insertions, 14 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index e582ced..ddafb3a 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -579,19 +579,11 @@ _call_async_weak_notify_cb (gpointer *data, GObject *dead_object) { RestProxyCallAsyncClosure *closure; - GError *error = NULL; closure = (RestProxyCallAsyncClosure *)data; /* Will end up freeing the closure */ - rest_proxy_call_cancel (closure->call, &error); - - if (error) - { - g_warning (G_STRLOC ": Error when cancelling call in weak notify: %s", - error->message); - g_clear_error (&error); - } + rest_proxy_call_cancel (closure->call); } static void @@ -741,14 +733,12 @@ error: /** * rest_proxy_call_cancel: * @call: The #RestProxyCall - * @error: unused (TODO remove) * * Cancel this call. It may be too late to not actually send the message, but * the callback will not be invoked. */ gboolean -rest_proxy_call_cancel (RestProxyCall *call, - GError **error) +rest_proxy_call_cancel (RestProxyCall *call) { RestProxyCallPrivate *priv; RestProxyCallAsyncClosure *closure; diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h index 6107661..3360156 100644 --- a/rest/rest-proxy-call.h +++ b/rest/rest-proxy-call.h @@ -141,8 +141,7 @@ gboolean rest_proxy_call_async (RestProxyCall *call, gpointer userdata, GError **error); -gboolean rest_proxy_call_cancel (RestProxyCall *call, - GError **error); +gboolean rest_proxy_call_cancel (RestProxyCall *call); gboolean rest_proxy_call_sync (RestProxyCall *call, GError **error_out); |