This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove add_free_pendings
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 23 Apr 2012 12:52:55 -0600
- Subject: FYI: remove add_free_pendings
I'm checking this in.
I happened to notice this function is not used.
This removes it.
Tom
2012-04-23 Tom Tromey <tromey@redhat.com>
* buildsym.c (add_free_pendings): Remove.
* buildsym.h (add_free_pendings): Remove.
Index: buildsym.c
===================================================================
RCS file: /cvs/src/src/gdb/buildsym.c,v
retrieving revision 1.92
diff -u -r1.92 buildsym.c
--- buildsym.c 12 Mar 2012 14:15:21 -0000 1.92
+++ buildsym.c 23 Apr 2012 18:52:25 -0000
@@ -101,20 +101,6 @@
/* Maintain the lists of symbols and blocks. */
-/* Add a pending list to free_pendings. */
-void
-add_free_pendings (struct pending *list)
-{
- struct pending *link = list;
-
- if (list)
- {
- while (link->next) link = link->next;
- link->next = free_pendings;
- free_pendings = list;
- }
-}
-
/* Add a symbol to one of the lists of symbols. */
void
Index: buildsym.h
===================================================================
RCS file: /cvs/src/src/gdb/buildsym.h,v
retrieving revision 1.31
diff -u -r1.31 buildsym.h
--- buildsym.h 12 Mar 2012 14:15:22 -0000 1.31
+++ buildsym.h 23 Apr 2012 18:52:25 -0000
@@ -233,8 +233,6 @@
#define INITIAL_TYPE_VECTOR_LENGTH 160
-extern void add_free_pendings (struct pending *list);
-
extern void add_symbol_to_list (struct symbol *symbol,
struct pending **listhead);