fix: Remove unused program_name variable
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Sat, 26 Nov 2016 21:18:30 +0000 (21:18 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Sat, 26 Nov 2016 21:25:02 +0000 (21:25 +0000)
src/gflags.cc

index bc62227..921b4f9 100644 (file)
@@ -1061,9 +1061,6 @@ static string ReadFileIntoString(const char* filename) {
 
 uint32 CommandLineFlagParser::ParseNewCommandLineFlags(int* argc, char*** argv,
                                                        bool remove_flags) {
-  const char *program_name = strrchr((*argv)[0], PATH_SEPARATOR);   // nix path
-  program_name = (program_name == NULL ? (*argv)[0] : program_name+1);
-
   int first_nonopt = *argc;        // for non-options moved to the end
 
   registry_->Lock();