forked from Imagelibrary/binutils-gdb
Eliminate block_iter_name_*
This patch gets rid of block_iter_name_* as being unnecessary. It's the same as calling block_iter_match_*, and passing strcmp_iw as comparison routine. (A later patch will get rid of those new explicit strcmp_iw calls.) gdb/ChangeLog: 2017-07-20 Pedro Alves <palves@redhat.com> * block.c (block_iter_name_step, block_iter_name_first) (block_iter_name_next): Delete. (block_lookup_symbol_primary): Adjust to use dict_iter_match_first/dict_iter_match_next. * block.h (block_iter_name_first, block_iter_name_next): Delete declarations. (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use dict_iter_match_first/dict_iter_match_next.
This commit is contained in:
@@ -529,20 +529,6 @@ dict_iterator_next (struct dict_iterator *iterator)
|
||||
->iterator_next (iterator);
|
||||
}
|
||||
|
||||
struct symbol *
|
||||
dict_iter_name_first (const struct dictionary *dict,
|
||||
const char *name,
|
||||
struct dict_iterator *iterator)
|
||||
{
|
||||
return dict_iter_match_first (dict, name, strcmp_iw, iterator);
|
||||
}
|
||||
|
||||
struct symbol *
|
||||
dict_iter_name_next (const char *name, struct dict_iterator *iterator)
|
||||
{
|
||||
return dict_iter_match_next (name, strcmp_iw, iterator);
|
||||
}
|
||||
|
||||
struct symbol *
|
||||
dict_iter_match_first (const struct dictionary *dict,
|
||||
const char *name, symbol_compare_ftype *compare,
|
||||
|
||||
Reference in New Issue
Block a user