[gnome-online-miners/wip/rishi/insert-share: 7/16] miner: Remove a one-line convenience function
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-miners/wip/rishi/insert-share: 7/16] miner: Remove a one-line convenience function
- Date: Sat, 3 Sep 2016 17:11:28 +0000 (UTC)
commit 4c3325fe75375bdaf3a4452a4823613a183c3f0b
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Sep 2 16:02:29 2016 +0200
miner: Remove a one-line convenience function
The port to GTask has simplified gom_miner_complete_error to the point
where we can directly use g_task_return_error.
src/gom-miner.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/gom-miner.c b/src/gom-miner.c
index 5bdd7b2..7d33526 100644
--- a/src/gom-miner.c
+++ b/src/gom-miner.c
@@ -176,14 +176,6 @@ gom_miner_class_init (GomMinerClass *klass)
}
static void
-gom_miner_complete_error (GomMiner *self,
- GError *error)
-{
- g_assert (self->priv->task != NULL);
- g_task_return_error (self->priv->task, g_error_copy (error));
-}
-
-static void
gom_miner_check_pending_jobs (GomMiner *self)
{
if (g_list_length (self->priv->pending_jobs) == 0)
@@ -730,13 +722,13 @@ gom_miner_refresh_db_async (GomMiner *self,
if (self->priv->client_error != NULL)
{
- gom_miner_complete_error (self, self->priv->client_error);
+ g_task_return_error (self->priv->task, g_error_copy (self->priv->client_error));
return;
}
if (self->priv->connection_error != NULL)
{
- gom_miner_complete_error (self, self->priv->connection_error);
+ g_task_return_error (self->priv->task, g_error_copy (self->priv->connection_error));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]