summaryrefslogtreecommitdiff
path: root/gdbsupport/common-utils.cc
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2020-05-25 11:40:07 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-05-25 11:40:35 -0400
commit7dbfcd6f79d9f66e317e61bac5855868f8d20043 (patch)
treef95c39efbfe3b5f150f93e4c7a1fe202a3b9ad9c /gdbsupport/common-utils.cc
parentbea571ebd78ee29cb94adf648fbcda1e109e1be6 (diff)
downloadbinutils-gdb-7dbfcd6f79d9f66e317e61bac5855868f8d20043.tar.gz
gdbsupport: Drop now unused function 'stringify_argv'
The function did not properly escape special characters and all uses have been replaced in previous commits, so drop the now unused function. gdbsupport/ChangeLog: * common-utils.cc, common-utils.h (stringify_argv): Drop now unused function stringify_argv Change-Id: Id5f861f44eae1f0fbde3476a5eac23a842ed04fc
Diffstat (limited to 'gdbsupport/common-utils.cc')
-rw-r--r--gdbsupport/common-utils.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/gdbsupport/common-utils.cc b/gdbsupport/common-utils.cc
index ed05d619c77..b5e4d2928ec 100644
--- a/gdbsupport/common-utils.cc
+++ b/gdbsupport/common-utils.cc
@@ -375,29 +375,6 @@ free_vector_argv (std::vector<char *> &v)
/* See gdbsupport/common-utils.h. */
-std::string
-stringify_argv (const std::vector<char *> &args)
-{
- std::string ret;
-
- if (!args.empty () && args[0] != NULL)
- {
- for (auto s : args)
- if (s != NULL)
- {
- ret += s;
- ret += ' ';
- }
-
- /* Erase the last whitespace. */
- ret.erase (ret.end () - 1);
- }
-
- return ret;
-}
-
-/* See gdbsupport/common-utils.h. */
-
ULONGEST
align_up (ULONGEST v, int n)
{