[tracker] all: Removed dead code from coverity report



commit 499577d430b72ca437bcf3b533d17dd5ff212d74
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Mar 6 20:51:11 2014 +0000

    all: Removed dead code from coverity report

 src/plugins/nautilus/tracker-tags-view.c |    5 -----
 src/tracker-extract/tracker-extract.c    |   18 ------------------
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/plugins/nautilus/tracker-tags-view.c b/src/plugins/nautilus/tracker-tags-view.c
index 6fb94d8..d0bdd6e 100644
--- a/src/plugins/nautilus/tracker-tags-view.c
+++ b/src/plugins/nautilus/tracker-tags-view.c
@@ -541,11 +541,6 @@ tags_view_add_tags_cb (GObject      *source_object,
                if (cursor) {
                        g_object_unref (cursor);
                }
-
-               if (error) {
-                       show_error_dialog (error);
-                       g_error_free (error);
-               }
        }
 }
 
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 8920bd1..05b255b 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -529,10 +529,6 @@ static gboolean
 get_metadata (TrackerExtractTask *task)
 {
        TrackerExtractInfo *info;
-       TrackerSparqlBuilder *preupdate, *postupdate, *statements;
-       gchar *where = NULL;
-
-       preupdate = postupdate = statements = NULL;
 
 #ifdef THREAD_ENABLE_TRACE
        g_debug ("Thread:%p --> File:'%s' - Extracted",
@@ -561,20 +557,6 @@ get_metadata (TrackerExtractTask *task)
                g_simple_async_result_complete_in_idle ((GSimpleAsyncResult *) task->res);
                extract_task_free (task);
        } else {
-               if (preupdate) {
-                       g_object_unref (preupdate);
-               }
-
-               if (postupdate) {
-                       g_object_unref (postupdate);
-               }
-
-               if (statements) {
-                       g_object_unref (statements);
-               }
-
-               g_free (where);
-
                /* Reinject the task into the main thread
                 * queue, so the next module kicks in.
                 */


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