[vlc-commits] cachegen: remove force option and always reset the cache when the helper tool is executed (refs #14519)

Felix Paul Kühne git at videolan.org
Sat Jul 25 16:04:56 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jul 25 15:54:55 2015 +0200| [4c9d122e77aba00c56f3bfa4e36ec4d4062cd75f] | committer: Felix Paul Kühne

cachegen: remove force option and always reset the cache when the helper tool is executed (refs #14519)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c9d122e77aba00c56f3bfa4e36ec4d4062cd75f
---

 bin/cachegen.c |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/bin/cachegen.c b/bin/cachegen.c
index 8e72bf4..68924ae 100644
--- a/bin/cachegen.c
+++ b/bin/cachegen.c
@@ -43,7 +43,6 @@ static void usage (const char *path)
     printf (
 "Usage: %s [-f] <path>\n"
 "Generate the LibVLC plugins cache for the specified plugins directory.\n"
-" -f, --force  forcefully reset the plugin cache (if it exists)\n",
             path);
 }
 
@@ -54,21 +53,16 @@ int main (int argc, char *argv[])
 #endif
     static const struct option opts[] =
     {
-        { "force",      no_argument,       NULL, 'f' },
         { "help",       no_argument,       NULL, 'h' },
         { "version",    no_argument,       NULL, 'V' },
         { NULL,         no_argument,       NULL, '\0'}
     };
 
     int c;
-    bool force = false;
 
     while ((c = getopt_long (argc, argv, "fhV", opts, NULL)) != -1)
         switch (c)
         {
-            case 'f':
-                force = true;
-                break;
             case 'h':
                 usage (argv[0]);
                 return 0;
@@ -91,8 +85,7 @@ int main (int argc, char *argv[])
         int vlc_argc = 0;
 
         vlc_argv[vlc_argc++] = "--quiet";
-        if (force)
-            vlc_argv[vlc_argc++] = "--reset-plugins-cache";
+        vlc_argv[vlc_argc++] = "--reset-plugins-cache";
         vlc_argv[vlc_argc++] = "--"; /* end of options */
         vlc_argv[vlc_argc] = NULL;
 



More information about the vlc-commits mailing list