mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
Remove streq_hash in favor of htab_eq_string
Now that libiberty includes htab_eq_string, we can remove the identical function from gdb. gdb/ChangeLog 2021-05-07 Tom Tromey <tom@tromey.com> * breakpoint.c (ambiguous_names_p): Use htab_eq_string. * utils.c (streq_hash): Remove. * utils.h (streq_hash): Don't declare. * completer.c (completion_tracker::discard_completions): Update comment. * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
This commit is contained in:
@ -2818,14 +2818,6 @@ streq (const char *lhs, const char *rhs)
|
||||
return !strcmp (lhs, rhs);
|
||||
}
|
||||
|
||||
/* See utils.h. */
|
||||
|
||||
int
|
||||
streq_hash (const void *lhs, const void *rhs)
|
||||
{
|
||||
return streq ((const char *) lhs, (const char *) rhs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user