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:
Tom Tromey
2021-05-07 09:18:18 -06:00
parent 13123da89a
commit 2698f5ead6
6 changed files with 13 additions and 16 deletions

View File

@ -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);
}
/*