[tracker/wip/carlosg/test: 1/3] tracker: Drop dead code in tracker reset --config



commit be0184538a8af7c84feeebadcd23b697c6001338
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 6 10:49:50 2018 +0100

    tracker: Drop dead code in tracker reset --config
    
    We haven't used configuration keyfiles for a long long time, just
    stop trying to delete them.

 src/tracker/tracker-reset.c | 25 -------------------------
 1 file changed, 25 deletions(-)
---
diff --git a/src/tracker/tracker-reset.c b/src/tracker/tracker-reset.c
index 2f4ee250e..98b487ca3 100644
--- a/src/tracker/tracker-reset.c
+++ b/src/tracker/tracker-reset.c
@@ -341,33 +341,8 @@ reset_run (void)
        }
 
        if (remove_config) {
-               GFile *file;
-               const gchar *home_conf_dir;
-               gchar *path;
                GSList *all, *l;
 
-               /* Check the default XDG_DATA_HOME location */
-               home_conf_dir = g_getenv ("XDG_CONFIG_HOME");
-
-               if (home_conf_dir && tracker_path_has_write_access_or_was_created (home_conf_dir)) {
-                       path = g_build_path (G_DIR_SEPARATOR_S, home_conf_dir, "tracker", NULL);
-               } else {
-                       home_conf_dir = g_getenv ("HOME");
-
-                       if (!home_conf_dir || !tracker_path_has_write_access_or_was_created (home_conf_dir)) {
-                               home_conf_dir = g_get_home_dir ();
-                       }
-                       path = g_build_path (G_DIR_SEPARATOR_S, home_conf_dir, ".config", "tracker", NULL);
-               }
-
-               file = g_file_new_for_path (path);
-               g_free (path);
-
-               g_print ("%s\n", _("Removing configuration files…"));
-
-               directory_foreach (file, ".cfg", (GFunc) delete_file, NULL);
-               g_object_unref (file);
-
                g_print ("%s\n", _("Resetting existing configuration…"));
 
                all = tracker_gsettings_get_all (NULL);


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