aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dictionary.c24
-rw-r--r--gdb/dictionary.h4
3 files changed, 5 insertions, 28 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7288efa..b2068a9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-11-26 Simon Marchi <simon.marchi@efficios.com>
+ * dictionary.c (dict_empty, mdict_empty): Remove.
+ * dictionary.c (mdict_empty): Remove.
+
+2019-11-26 Simon Marchi <simon.marchi@efficios.com>
+
* arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
(arc_insn_get_memory_offset): Likewise.
(arc_insn_dump): Likewise.
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;
-}
diff --git a/gdb/dictionary.h b/gdb/dictionary.h
index e6481cd..9a7739b 100644
--- a/gdb/dictionary.h
+++ b/gdb/dictionary.h
@@ -93,10 +93,6 @@ extern void mdict_add_symbol (struct multidictionary *mdict,
extern void mdict_add_pending (struct multidictionary *mdict,
const struct pending *symbol_list);
-/* Is the multidictionary empty? */
-
-extern int mdict_empty (struct multidictionary *mdict);
-
/* A type containing data that is used when iterating over all symbols
in a dictionary. Don't ever look at its innards; this type would
be opaque if we didn't need to be able to allocate it on the