[tracker] libtracker-miner: Remove unneeded methods from processing pool



commit 10f3a589ae8d46cdb6e9e5c714df0c4e0a258e91
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Mar 15 12:15:53 2011 +0100

    libtracker-miner: Remove unneeded methods from processing pool

 .../tracker-miner-fs-processing-pool.c             |    9 +--------
 .../tracker-miner-fs-processing-pool.h             |    7 ++-----
 2 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs-processing-pool.c b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
index e6f4816..9eabaa4 100644
--- a/src/libtracker-miner/tracker-miner-fs-processing-pool.c
+++ b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
@@ -362,7 +362,6 @@ pool_status_trace_timeout_cb (gpointer data)
 	}
 	return TRUE;
 }
-
 #endif /* PROCESSING_POOL_ENABLE_TRACE */
 
 static void
@@ -485,7 +484,7 @@ tracker_processing_pool_wait_limit_reached (TrackerProcessingPool *pool)
 	        TRUE : FALSE);
 }
 
-gboolean
+static gboolean
 tracker_processing_pool_ready_limit_reached (TrackerProcessingPool *pool)
 {
 	return ((g_queue_get_length (pool->tasks[TRACKER_PROCESSING_TASK_STATUS_READY]) >=
@@ -1038,12 +1037,6 @@ tracker_processing_pool_get_wait_task_count (TrackerProcessingPool *pool)
 }
 
 guint
-tracker_processing_pool_get_ready_task_count (TrackerProcessingPool *pool)
-{
-	return g_queue_get_length (pool->tasks[TRACKER_PROCESSING_TASK_STATUS_READY]);
-}
-
-guint
 tracker_processing_pool_get_total_task_count (TrackerProcessingPool *pool)
 {
 	guint total = 0;
diff --git a/src/libtracker-miner/tracker-miner-fs-processing-pool.h b/src/libtracker-miner/tracker-miner-fs-processing-pool.h
index f5322e0..1d73794 100644
--- a/src/libtracker-miner/tracker-miner-fs-processing-pool.h
+++ b/src/libtracker-miner/tracker-miner-fs-processing-pool.h
@@ -40,6 +40,7 @@ typedef void  (* TrackerProcessingPoolTaskFinishedCallback) (TrackerProcessingTa
                                                              gpointer               user_data,
                                                              const GError          *error);
 
+/* Processing Task API */
 
 TrackerProcessingTask *tracker_processing_task_new               (GFile                 *file);
 void                   tracker_processing_task_free              (TrackerProcessingTask *task);
@@ -52,12 +53,11 @@ void                   tracker_processing_task_set_sparql        (TrackerProcess
                                                                   TrackerSparqlBuilder  *sparql);
 void                   tracker_processing_task_set_sparql_string (TrackerProcessingTask *task,
                                                                   gchar                 *sparql_string);
-
-/* API for bulk operations */
 void                   tracker_processing_task_set_bulk_operation (TrackerProcessingTask *task,
                                                                    const gchar           *sparql,
                                                                    TrackerBulkMatchType   match);
 
+/* Processing Pool API */
 
 TrackerProcessingPool *tracker_processing_pool_new                   (TrackerMinerFS          *miner,
                                                                       guint                    limit_wait,
@@ -73,8 +73,6 @@ TrackerProcessingTask *tracker_processing_pool_find_task             (TrackerPro
                                                                       GFile                   *file,
                                                                       gboolean                 path_search);
 gboolean               tracker_processing_pool_wait_limit_reached    (TrackerProcessingPool   *pool);
-gboolean               tracker_processing_pool_ready_limit_reached   (TrackerProcessingPool   *pool);
-
 void                   tracker_processing_pool_remove_task           (TrackerProcessingPool   *pool,
                                                                       TrackerProcessingTask   *task);
 void                   tracker_processing_pool_push_wait_task        (TrackerProcessingPool   *pool,
@@ -85,7 +83,6 @@ gboolean               tracker_processing_pool_push_ready_task       (TrackerPro
                                                                       TrackerProcessingPoolTaskFinishedCallback finished_handler,
                                                                       gpointer                 user_data);
 guint                  tracker_processing_pool_get_wait_task_count   (TrackerProcessingPool   *pool);
-guint                  tracker_processing_pool_get_ready_task_count  (TrackerProcessingPool   *pool);
 guint                  tracker_processing_pool_get_total_task_count  (TrackerProcessingPool   *pool);
 TrackerProcessingTask *tracker_processing_pool_get_last_wait         (TrackerProcessingPool   *pool);
 void                   tracker_processing_pool_foreach               (TrackerProcessingPool   *pool,



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