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: 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
 


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