[tracker-miners/wip/carlosg/cli-improvements: 34/47] tracker: Remove "--file" argument from tracker3 index




commit 82b7be5e8644738f28c4e0f75c4d8e4c25a0027a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Aug 17 20:02:04 2020 +0200

    tracker: Remove "--file" argument from tracker3 index
    
    This (kinda pointlessly) remained, but it's now even more so with
    the changes that are coming.

 src/tracker/tracker-index.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/src/tracker/tracker-index.c b/src/tracker/tracker-index.c
index 506ca2e4e..7c8507579 100644
--- a/src/tracker/tracker-index.c
+++ b/src/tracker/tracker-index.c
@@ -38,13 +38,9 @@
 #include "tracker-dbus.h"
 #include "tracker-miner-manager.h"
 
-static gboolean file_arg;
 static gchar **filenames;
 
 static GOptionEntry entries[] = {
-       { "file", 'f', 0, G_OPTION_ARG_NONE, &file_arg,
-        N_("Does nothing, provided for compatibility with Tracker 2.0"),
-        NULL },
        { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &filenames,
          N_("FILE"),
          N_("FILE") },
@@ -236,9 +232,5 @@ main (int argc, const char **argv)
                return EXIT_FAILURE;
        }
 
-       if (file_arg) {
-               g_message ("The --file arg is no longer needed.");
-       }
-
        return index_run ();
 }


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