[gnome-photos] dlna-renderer: Use the default impl for GAsyncInitable::init_finish()
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] dlna-renderer: Use the default impl for GAsyncInitable::init_finish()
- Date: Fri, 19 Jul 2013 12:53:54 +0000 (UTC)
commit 95ef0c3b07f0286369d5fd07dd4bc78431225300
Author: Emanuele Aina <emanuele aina collabora com>
Date: Fri Jul 5 13:13:33 2013 +0200
dlna-renderer: Use the default impl for GAsyncInitable::init_finish()
It is less code for us and also more correct as it also handle the old
compatibility case where the GAsyncResult is a GSimpleAsyncResult and
not a GTask.
https://bugzilla.gnome.org/show_bug.cgi?id=703649
src/photos-dlna-renderer.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/photos-dlna-renderer.c b/src/photos-dlna-renderer.c
index 1a23880..cce0bba 100644
--- a/src/photos-dlna-renderer.c
+++ b/src/photos-dlna-renderer.c
@@ -397,17 +397,6 @@ photos_dlna_renderer_init_async (GAsyncInitable *initable,
}
-static gboolean
-photos_dlna_renderer_init_finish (GAsyncInitable *initable,
- GAsyncResult *result,
- GError **error)
-{
- g_return_val_if_fail (g_task_is_valid (result, G_OBJECT (initable)), FALSE);
-
- return g_task_propagate_pointer (G_TASK (result), error) != NULL;
-}
-
-
PhotosDlnaRenderer*
photos_dlna_renderer_new_for_bus_finish (GAsyncResult *result,
GError **error)
@@ -434,7 +423,6 @@ static void
photos_dlna_renderer_async_initable_iface_init (GAsyncInitableIface *iface)
{
iface->init_async = photos_dlna_renderer_init_async;
- iface->init_finish = photos_dlna_renderer_init_finish;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]