[tracker/tracker-0.6] Removed unused variables from coverity findings



commit 81cd9fdc9b53bd2f9e756ba7954b25f41534365c
Author: Martyn Russell <martyn imendio com>
Date:   Wed May 13 15:30:19 2009 +0100

    Removed unused variables from coverity findings
---
 src/libtracker-common/tracker-config.c          |    4 ----
 src/libtracker-common/tracker-language.c        |    4 ----
 src/libtracker-common/tracker-service.c         |    4 ----
 src/libtracker-db/tracker-db-interface-sqlite.c |    4 ----
 src/tracker-indexer/tracker-indexer.c           |    4 ----
 src/trackerd/tracker-daemon.c                   |    8 +-------
 src/trackerd/tracker-files.c                    |    6 ++----
 src/trackerd/tracker-push-registrar.c           |    4 ----
 src/trackerd/tracker-search.c                   |    4 ++--
 9 files changed, 5 insertions(+), 37 deletions(-)

diff --git a/src/libtracker-common/tracker-config.c b/src/libtracker-common/tracker-config.c
index 3721124..c0dfbf3 100644
--- a/src/libtracker-common/tracker-config.c
+++ b/src/libtracker-common/tracker-config.c
@@ -611,10 +611,6 @@ config_set_property (GObject	  *object,
 		     const GValue *value,
 		     GParamSpec	  *pspec)
 {
-	TrackerConfigPrivate *priv;
-
-	priv = TRACKER_CONFIG_GET_PRIVATE (object);
-
 	switch (param_id) {
 		/* General */
 	case PROP_VERBOSITY:
diff --git a/src/libtracker-common/tracker-language.c b/src/libtracker-common/tracker-language.c
index 9724bdb..727c200 100644
--- a/src/libtracker-common/tracker-language.c
+++ b/src/libtracker-common/tracker-language.c
@@ -195,10 +195,6 @@ language_set_property (GObject	    *object,
 		       const GValue *value,
 		       GParamSpec   *pspec)
 {
-	TrackerLanguagePriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_CONFIG:
 		tracker_language_set_config (TRACKER_LANGUAGE (object),
diff --git a/src/libtracker-common/tracker-service.c b/src/libtracker-common/tracker-service.c
index fc35174..3f28fb4 100644
--- a/src/libtracker-common/tracker-service.c
+++ b/src/libtracker-common/tracker-service.c
@@ -327,10 +327,6 @@ service_set_property (GObject	   *object,
 		      const GValue *value,
 		      GParamSpec   *pspec)
 {
-	TrackerServicePriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_ID:
 		tracker_service_set_id (TRACKER_SERVICE (object),
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index fd4827f..22f1221 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -640,12 +640,10 @@ tracker_db_interface_sqlite_execute_procedure (TrackerDBInterface  *db_interface
 					       const gchar	   *procedure_name,
 					       va_list		    args)
 {
-	TrackerDBInterfaceSqlitePrivate *priv;
 	sqlite3_stmt *stmt;
 	gint stmt_args, n_args;
 	gchar *str;
 
-	priv = TRACKER_DB_INTERFACE_SQLITE_GET_PRIVATE (db_interface);
 	stmt = get_stored_stmt (TRACKER_DB_INTERFACE_SQLITE (db_interface), procedure_name);
 	stmt_args = sqlite3_bind_parameter_count (stmt);
 
@@ -663,12 +661,10 @@ tracker_db_interface_sqlite_execute_procedure_len (TrackerDBInterface  *db_inter
 						   const gchar	       *procedure_name,
 						   va_list		args)
 {
-	TrackerDBInterfaceSqlitePrivate *priv;
 	sqlite3_stmt *stmt;
 	gint stmt_args, n_args, len;
 	gchar *str;
 
-	priv = TRACKER_DB_INTERFACE_SQLITE_GET_PRIVATE (db_interface);
 	stmt = get_stored_stmt (TRACKER_DB_INTERFACE_SQLITE (db_interface), procedure_name);
 	stmt_args = sqlite3_bind_parameter_count (stmt);
 
diff --git a/src/tracker-indexer/tracker-indexer.c b/src/tracker-indexer/tracker-indexer.c
index eaec775..cc1a16f 100644
--- a/src/tracker-indexer/tracker-indexer.c
+++ b/src/tracker-indexer/tracker-indexer.c
@@ -705,10 +705,6 @@ tracker_indexer_get_property (GObject	 *object,
 			      GValue	 *value,
 			      GParamSpec *pspec)
 {
-	TrackerIndexerPrivate *priv;
-
-	priv = TRACKER_INDEXER_GET_PRIVATE (object);
-
 	switch (prop_id) {
 	case PROP_RUNNING:
 		g_value_set_boolean (value,
diff --git a/src/trackerd/tracker-daemon.c b/src/trackerd/tracker-daemon.c
index 3f24f00..6677d35 100644
--- a/src/trackerd/tracker-daemon.c
+++ b/src/trackerd/tracker-daemon.c
@@ -203,7 +203,6 @@ static void
 tracker_daemon_init (TrackerDaemon *object)
 {
 	TrackerDaemonPrivate *priv;
-	TrackerDBInterface   *iface;
 	DBusGProxy           *proxy;
 
 	priv = TRACKER_DAEMON_GET_PRIVATE (object);
@@ -224,8 +223,6 @@ tracker_daemon_init (TrackerDaemon *object)
 				     object,
 				     NULL);
 
-	iface = tracker_db_manager_get_db_interface (TRACKER_DB_COMMON);
-
 	priv->stats_cache = g_hash_table_new_full (g_str_hash,
 						   g_str_equal,
 						   g_free,
@@ -714,8 +711,7 @@ tracker_daemon_shutdown (TrackerDaemon		*object,
 			 DBusGMethodInvocation	*context,
 			 GError		       **error)
 {
-	TrackerDaemonPrivate *priv;
-	guint		      request_id;
+	guint request_id;
 
 	request_id = tracker_dbus_get_next_request_id ();
 
@@ -724,8 +720,6 @@ tracker_daemon_shutdown (TrackerDaemon		*object,
 				  "reindex:%s",
 				  reindex ? "yes" : "no");
 
-	priv = TRACKER_DAEMON_GET_PRIVATE (object);
-
 	g_message ("Tracker daemon attempting to shutdown");
 
 	tracker_set_reindex_on_shutdown (reindex);
diff --git a/src/trackerd/tracker-files.c b/src/trackerd/tracker-files.c
index 943c751..2c22167 100644
--- a/src/trackerd/tracker-files.c
+++ b/src/trackerd/tracker-files.c
@@ -429,7 +429,7 @@ tracker_files_search_text_contents (TrackerFiles	   *object,
 				    DBusGMethodInvocation  *context,
 				    GError		  **error)
 {
-	TrackerDBInterface *iface;
+	/* TrackerDBInterface *iface; */
 	TrackerDBResultSet *result_set = NULL;
 	guint		    request_id;
 	gchar		   *name = NULL;
@@ -451,7 +451,7 @@ tracker_files_search_text_contents (TrackerFiles	   *object,
 				  text,
 				  max_length);
 
-	iface = tracker_db_manager_get_db_interface_by_service (TRACKER_DB_FOR_FILE_SERVICE);
+	/* iface = tracker_db_manager_get_db_interface_by_service (TRACKER_DB_FOR_FILE_SERVICE); */
 
 	tracker_file_get_path_and_name (uri, &path, &name);
 
@@ -473,8 +473,6 @@ tracker_files_search_text_contents (TrackerFiles	   *object,
 	if (result_set) {
 		tracker_db_result_set_get (result_set, 0, value, -1);
 		g_object_unref (result_set);
-	} else {
-		value = g_strdup ("");
 	}
 
 	/* Fixme: when this is implemented, we should return TRUE and
diff --git a/src/trackerd/tracker-push-registrar.c b/src/trackerd/tracker-push-registrar.c
index d36dd30..a8ca7f2 100644
--- a/src/trackerd/tracker-push-registrar.c
+++ b/src/trackerd/tracker-push-registrar.c
@@ -126,10 +126,6 @@ tracker_push_registrar_set_property (GObject      *object,
 				     const GValue *value,
 				     GParamSpec   *pspec)
 {
-	TrackerPushRegistrarPrivate *priv;
-
-	priv = TRACKER_PUSH_REGISTRAR_GET_PRIVATE (object);
-
 	switch (prop_id) {
 	case PROP_MANAGER:
 		tracker_push_registrar_set_manager (TRACKER_PUSH_REGISTRAR (object),
diff --git a/src/trackerd/tracker-search.c b/src/trackerd/tracker-search.c
index 04a8228..cfa9ce6 100644
--- a/src/trackerd/tracker-search.c
+++ b/src/trackerd/tracker-search.c
@@ -1080,7 +1080,7 @@ tracker_search_matching_fields (TrackerSearch	      *object,
 				DBusGMethodInvocation  *context,
 				GError		      **error)
 {
-	TrackerDBInterface *iface;
+	/* TrackerDBInterface *iface; */
 	TrackerDBResultSet *result_set;
 	GError		   *actual_error = NULL;
 	guint		    request_id;
@@ -1120,7 +1120,7 @@ tracker_search_matching_fields (TrackerSearch	      *object,
 		return;
 	}
 
-	iface = tracker_db_manager_get_db_interface_by_service (service);
+	/* iface = tracker_db_manager_get_db_interface_by_service (service); */
 
 	/* FIXME: This function no longer exists, it was returning
 	 * NULL in every case, this DBus function needs rewriting or



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