diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-20 12:07:44 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-16 08:55:20 -0600 |
commit | 43130d6f969cebcd407e210fd06e565647401ba9 (patch) | |
tree | a2787d447bda47be88552be2e884038ba0f3674a /gdb/buildsym.c | |
parent | 77d6f1aa16685bc715c95decf6e3d3ae2e70dbc1 (diff) | |
download | gdb-43130d6f969cebcd407e210fd06e565647401ba9.zip gdb-43130d6f969cebcd407e210fd06e565647401ba9.tar.gz gdb-43130d6f969cebcd407e210fd06e565647401ba9.tar.bz2 |
Remove merge_symbol_lists
I discovered that merge_symbol_lists is unused, so this removes it.
gdb/ChangeLog
2018-07-16 Tom Tromey <tom@tromey.com>
* buildsym.h (merge_symbol_lists): Remove.
* buildsym.c (merge_symbol_lists): Remove.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index a87f58a..d1e47c3 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -1677,33 +1677,6 @@ record_producer (const char *producer) buildsym_compunit->producer = producer; } -/* Merge the first symbol list SRCLIST into the second symbol list - TARGETLIST by repeated calls to add_symbol_to_list(). This - procedure "frees" each link of SRCLIST by adding it to the - free_pendings list. Caller must set SRCLIST to a null list after - calling this function. - - Void return. */ - -void -merge_symbol_lists (struct pending **srclist, struct pending **targetlist) -{ - int i; - - if (!srclist || !*srclist) - return; - - /* Merge in elements from current link. */ - for (i = 0; i < (*srclist)->nsyms; i++) - add_symbol_to_list ((*srclist)->symbol[i], targetlist); - - /* Recurse on next. */ - merge_symbol_lists (&(*srclist)->next, targetlist); - - /* "Free" the current link. */ - (*srclist)->next = free_pendings; - free_pendings = (*srclist); -} /* See buildsym.h. */ |