delete gdbserver's freeargv

gdbserver defines freeargv, but it is now trivial to just use the one
in libiberty.

2014-06-12  Tom Tromey  <tromey@redhat.com>

	* utils.c (freeargv): Remove.
This commit is contained in:
Tom Tromey 2014-01-19 19:34:23 -07:00
parent 0b04e52316
commit f9d1eeed58
2 changed files with 4 additions and 21 deletions

View File

@ -1,3 +1,7 @@
2014-06-12 Tom Tromey <tromey@redhat.com>
* utils.c (freeargv): Remove.
2014-06-12 Tom Tromey <tromey@redhat.com>
* debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.

View File

@ -55,27 +55,6 @@ xstrdup (const char *s)
return ret;
}
#ifndef IN_PROCESS_AGENT
/* Free a standard argv vector. */
void
freeargv (char **vector)
{
char **scan;
if (vector != NULL)
{
for (scan = vector; *scan != NULL; scan++)
{
free (*scan);
}
free (vector);
}
}
#endif
/* Print the system error message for errno, and also mention STRING
as the file name for which the error was encountered.
Then return to command level. */