Remove dict_empty/mdict_empty
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 17:12:01 +0000 (12:12 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 19:29:20 +0000 (14:29 -0500)
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

gdb/ChangeLog
gdb/dictionary.c
gdb/dictionary.h

index 7288efa37c5a4f250e6f21e0127e04dea3aa289f..b2068a91c7812e941452fc505d24406e4e71448c 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 939f32b59afb0cf07d3d72dc7669d40115e7a2b3..0d13370b7269924a89d4bdc45b3a858a73872634 100644 (file)
@@ -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;
-}
index e6481cd38ce9895c3a79c4afa935cf049c6c531d..9a7739b7c10d70a337f096227f186fb0a7881c7a 100644 (file)
@@ -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
This page took 0.036938 seconds and 4 git commands to generate.