[tracker-miners/wip/carlosg/parallel-installable: 16/27] tracker-extract: Remove pointless initialization



commit 25310d1cc8759a0150b9e817bf73cf1d3cab3749
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Feb 24 00:56:03 2020 +0100

    tracker-extract: Remove pointless initialization
    
    When tracker-extract kicks in the store directory is created long
    ago. Just remove this.

 src/tracker-extract/tracker-main.c | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index 21f1047b9..6839cde24 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -134,25 +134,6 @@ initialize_priority_and_scheduling (void)
        }
 }
 
-static void
-initialize_directories (void)
-{
-       gchar *user_data_dir;
-
-       /* NOTE: We don't create the database directories here, the
-        * tracker-db-manager does that for us.
-        */
-
-       user_data_dir = g_build_filename (g_get_user_data_dir (),
-                                         "tracker",
-                                         NULL);
-
-       /* g_message ("Checking directory exists:'%s'", user_data_dir); */
-       g_mkdir_with_parents (user_data_dir, 00755);
-
-       g_free (user_data_dir);
-}
-
 static gboolean
 signal_handler (gpointer user_data)
 {
@@ -396,9 +377,6 @@ main (int argc, char *argv[])
                return run_standalone (config);
        }
 
-       /* Initialize subsystems */
-       initialize_directories ();
-
        extract = tracker_extract_new (TRUE, force_module);
 
        if (!extract) {


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