aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-hash.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-05-09 12:28:32 +0930
committerAlan Modra <amodra@gmail.com>2021-05-09 12:28:32 +0930
commit4821e618adddf77138279883b72e87c2211418d5 (patch)
tree364806886ad74a695cfc63faf56ac59459e35fec /libctf/ctf-hash.c
parentb05a0fc79b9eed659cf52b4706f11700b92ae4af (diff)
downloadbinutils-4821e618adddf77138279883b72e87c2211418d5.zip
binutils-4821e618adddf77138279883b72e87c2211418d5.tar.gz
binutils-4821e618adddf77138279883b72e87c2211418d5.tar.bz2
Use htab_eq_string in libctf
* ctf-impl.h (ctf_dynset_eq_string): Don't declare. * ctf-hash.c (ctf_dynset_eq_string): Delete function. * ctf-dedup.c (make_set_element): Use htab_eq_string. (ctf_dedup_atoms_init, ADD_CITER, ctf_dedup_init): Likewise. (ctf_dedup_conflictify_unshared): Likewise. (ctf_dedup_walk_output_mapping): Likewise.
Diffstat (limited to 'libctf/ctf-hash.c')
-rw-r--r--libctf/ctf-hash.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libctf/ctf-hash.c b/libctf/ctf-hash.c
index 426bd62..73fca6f 100644
--- a/libctf/ctf-hash.c
+++ b/libctf/ctf-hash.c
@@ -140,15 +140,6 @@ ctf_hash_eq_type_id_key (const void *a, const void *b)
&& (key_a->ctii_type == key_b->ctii_type);
}
-/* Hash and eq functions for the dynset. Most of these can just use the
- underlying hashtab functions directly. */
-
-int
-ctf_dynset_eq_string (const void *a, const void *b)
-{
- return !strcmp((const char *) a, (const char *) b);
-}
-
/* The dynhash, used for hashes whose size is not known at creation time. */
/* Free a single ctf_helem with arbitrary key/value functions. */