aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/gdb_vecs.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2018-03-02 23:22:10 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2018-03-02 23:22:10 -0500
commit54693cf5f11bf292ae308604caf6e866dbb03e6f (patch)
treea3b05339734b90ffada318b94ab7d8519d6f61b3 /gdb/common/gdb_vecs.c
parentccb2231cd848c89f04ab2e1e54b013d69ea34893 (diff)
downloadfsf-binutils-gdb-54693cf5f11bf292ae308604caf6e866dbb03e6f.zip
fsf-binutils-gdb-54693cf5f11bf292ae308604caf6e866dbb03e6f.tar.gz
fsf-binutils-gdb-54693cf5f11bf292ae308604caf6e866dbb03e6f.tar.bz2
Remove free_char_ptr_vec
Nothing is using it anymore. gdb/ChangeLog: * common/gdb_vecs.c (free_char_ptr_vec): Remove. * common/gdb_vecs.h (free_char_ptr_vec): Remove.
Diffstat (limited to 'gdb/common/gdb_vecs.c')
-rw-r--r--gdb/common/gdb_vecs.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/common/gdb_vecs.c b/gdb/common/gdb_vecs.c
index a19d238..445793e 100644
--- a/gdb/common/gdb_vecs.c
+++ b/gdb/common/gdb_vecs.c
@@ -21,24 +21,6 @@
#include "gdb_vecs.h"
#include "host-defs.h"
-/* Call xfree for each element of CHAR_PTR_VEC and final VEC_free for
- CHAR_PTR_VEC itself.
-
- You must not modify CHAR_PTR_VEC after it got registered with this function
- by make_cleanup as the CHAR_PTR_VEC base address may change on its updates.
- Contrary to VEC_free this function does not (cannot) clear the pointer. */
-
-void
-free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec)
-{
- int ix;
- char *name;
-
- for (ix = 0; VEC_iterate (char_ptr, char_ptr_vec, ix, name); ++ix)
- xfree (name);
- VEC_free (char_ptr, char_ptr_vec);
-}
-
/* Worker function to split character delimiter separated string of fields
STR into a char pointer vector. */