]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libiberty/argv.c: remove only_whitespace
authorAndrew Burgess <aburgess@redhat.com>
Mon, 29 Jul 2024 12:47:32 +0000 (13:47 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 5 Aug 2024 11:35:38 +0000 (12:35 +0100)
After the commit:

  commit 5e1d530da87a6d2aa7e719744cb278e7e54a6623 (gcc-buildargv)
  Date:   Sat Feb 10 11:22:13 2024 +0000

      libiberty/buildargv: handle input consisting of only white space

The function only_whitespace (in argv.c) was no longer being called.
Lets delete it.

There should be no user visible changes after this commit.

2024-07-29  Andrew Burgess  <aburgess@redhat.com>

libiberty/

* argv.c (only_whitespace): Delete.

libiberty/argv.c

index 675336273f3a076351318b01517b66916daa56c8..f889432a86838dbe628173f3b397923237d699ee 100644 (file)
@@ -124,15 +124,6 @@ consume_whitespace (const char **input)
     }
 }
 
-static int
-only_whitespace (const char* input)
-{
-  while (*input != EOS && ISSPACE (*input))
-    input++;
-
-  return (*input == EOS);
-}
-
 /*
 
 @deftypefn Extension char** buildargv (char *@var{sp})