This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[FYI 1/2] Remove const_char_ptr typedef


The const_char_ptr is no longer used, so it can be removed.

ChangeLog
2018-05-29  Tom Tromey  <tom@tromey.com>

	* objc-lang.h: Don't include cp-support.h.
	* common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
	declare VEC.
---
 gdb/ChangeLog         | 6 ++++++
 gdb/common/gdb_vecs.h | 4 ----
 gdb/objc-lang.h       | 2 --
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gdb/common/gdb_vecs.h b/gdb/common/gdb_vecs.h
index 3e461dca483..8bafd0dd6a4 100644
--- a/gdb/common/gdb_vecs.h
+++ b/gdb/common/gdb_vecs.h
@@ -22,10 +22,6 @@
 
 #include "vec.h"
 
-typedef const char *const_char_ptr;
-
-DEF_VEC_P (const_char_ptr);
-
 /* Split STR, a list of DELIMITER-separated fields, into a char pointer vector.
 
    You may modify the returned strings.  */
diff --git a/gdb/objc-lang.h b/gdb/objc-lang.h
index d3ed1d5fa63..2281c614968 100644
--- a/gdb/objc-lang.h
+++ b/gdb/objc-lang.h
@@ -20,8 +20,6 @@
 #if !defined(OBJC_LANG_H)
 #define OBJC_LANG_H
 
-#include "cp-support.h"		/* For VEC (const_char_ptr) */
-
 struct stoken;
 
 struct value;
-- 
2.13.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]