diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2019-11-26 12:12:01 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2019-11-26 14:29:20 -0500 |
commit | b62f6f5435efa0bedf5a363ee09552285b1f1372 (patch) | |
tree | 20a57747f700e4abf97d034201dda193107fe195 /gdb/dictionary.c | |
parent | cb8c24b66178a2b7efcfa396ac54fb7252493d9c (diff) | |
download | fsf-binutils-gdb-b62f6f5435efa0bedf5a363ee09552285b1f1372.zip fsf-binutils-gdb-b62f6f5435efa0bedf5a363ee09552285b1f1372.tar.gz fsf-binutils-gdb-b62f6f5435efa0bedf5a363ee09552285b1f1372.tar.bz2 |
Remove dict_empty/mdict_empty
These functions are not used in the code base, remove them.
gdb/ChangeLog:
* dictionary.c (dict_empty, mdict_empty): Remove.
* dictionary.c (mdict_empty): Remove.
Change-Id: I4c1b08c730f6790b2f3d28b680607618e3c08e48
Diffstat (limited to 'gdb/dictionary.c')
-rw-r--r-- | gdb/dictionary.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gdb/dictionary.c b/gdb/dictionary.c index 939f32b..0d13370 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -508,16 +508,6 @@ dict_size (const struct dictionary *dict) implemented generically by means of the vtable. Typically, they're rarely used. */ -/* Test to see if DICT is empty. */ - -static int -dict_empty (struct dictionary *dict) -{ - struct dict_iterator iter; - - return (dict_iterator_first (dict, &iter) == NULL); -} - /* The functions implementing the dictionary interface. */ @@ -1283,17 +1273,3 @@ mdict_size (const struct multidictionary *mdict) return size; } - -/* See dictionary.h. */ - -bool -mdict_empty (const struct multidictionary *mdict) -{ - for (unsigned short idx = 0; idx < mdict->n_allocated_dictionaries; ++idx) - { - if (!dict_empty (mdict->dictionaries[idx])) - return false; - } - - return true; -} |