[tracker/rss-enclosures] tracker-store: class-signal: Cleanup gboolean returns



commit 009accbc273e09dc81ae246b752b5ac4fd7d8573
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Aug 31 16:49:19 2010 +0200

    tracker-store: class-signal: Cleanup gboolean returns

 src/tracker-store/tracker-resources.c |    6 +-----
 src/tracker-store/tracker-writeback.c |    9 +++------
 src/tracker-store/tracker-writeback.h |    2 +-
 3 files changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 3f11691..82fe281 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -679,7 +679,7 @@ on_statements_rolled_back (gpointer user_data)
 	tracker_writeback_reset_pending ();
 }
 
-static gboolean
+static void
 check_graph_updated_signal (TrackerResources *object)
 {
 	TrackerResourcesPrivate *priv;
@@ -699,11 +699,7 @@ check_graph_updated_signal (TrackerResources *object)
 
 		/* Reset counter */
 		tracker_events_get_total (TRUE);
-
-		return TRUE;
 	}
-
-	return FALSE;
 }
 
 static void
diff --git a/src/tracker-store/tracker-writeback.c b/src/tracker-store/tracker-writeback.c
index da8ea8f..bdd02d5 100644
--- a/src/tracker-store/tracker-writeback.c
+++ b/src/tracker-store/tracker-writeback.c
@@ -56,7 +56,7 @@ array_free (GArray *array)
 	g_array_free (array, TRUE);
 }
 
-gboolean
+void
 tracker_writeback_check (gint         graph_id,
                          const gchar *graph,
                          gint         subject_id,
@@ -73,10 +73,10 @@ tracker_writeback_check (gint         graph_id,
 
 	if (graph != NULL) {
 		/* g_debug ("Not doing writeback check, no graph"); */
-		return FALSE;
+		return;
 	}
 
-	g_return_val_if_fail (private != NULL, FALSE);
+	g_return_if_fail (private != NULL);
 
 	if (g_hash_table_lookup (private->allowances, GINT_TO_POINTER (pred_id))) {
 		if (!private->pending_events) {
@@ -88,10 +88,7 @@ tracker_writeback_check (gint         graph_id,
 		g_hash_table_insert (private->pending_events,
 		                     GINT_TO_POINTER (subject_id),
 		                     rdf_types_to_array (rdf_types));
-		return TRUE;
 	}
-
-	return FALSE;
 }
 
 void
diff --git a/src/tracker-store/tracker-writeback.h b/src/tracker-store/tracker-writeback.h
index f203e02..2fecdee 100644
--- a/src/tracker-store/tracker-writeback.h
+++ b/src/tracker-store/tracker-writeback.h
@@ -31,7 +31,7 @@ typedef GStrv (*TrackerWritebackGetPredicatesFunc) (void);
 
 void        tracker_writeback_init          (TrackerWritebackGetPredicatesFunc callback);
 void        tracker_writeback_shutdown      (void);
-gboolean    tracker_writeback_check         (gint         graph_id,
+void        tracker_writeback_check         (gint         graph_id,
                                              const gchar *graph,
                                              gint         subject_id,
                                              const gchar *subject,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]