This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove unused global from target.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 27 Jun 2013 13:27:19 -0600
- Subject: FYI: remove unused global from target.c
I'm checking this in.
I happened to notice that target.c:target_struct_index is unused.
This patch removes it.
Tested by rebuilding.
Tom
2013-06-27 Tom Tromey <tromey@redhat.com>
* target.c (target_struct_index): Remove.
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.336
diff -u -r1.336 target.c
--- target.c 4 Jun 2013 13:10:53 -0000 1.336
+++ target.c 27 Jun 2013 19:15:34 -0000
@@ -153,7 +153,6 @@
array. */
struct target_ops **target_structs;
unsigned target_struct_size;
-unsigned target_struct_index;
unsigned target_struct_allocsize;
#define DEFAULT_ALLOCSIZE 10