aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-gimplify.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-11-02 09:29:14 -0800
committerNathan Sidwell <nathan@acm.org>2020-11-02 10:34:31 -0800
commitf915e19e62a81b46c613b4d665e1d38ceee16991 (patch)
treee21198f17a08b920b11ba5e0977cbb95f7348674 /gcc/cp/cp-gimplify.c
parentbebabf70a01b78d9bea65a0bbe8744a2adb6b373 (diff)
downloadgcc-f915e19e62a81b46c613b4d665e1d38ceee16991.zip
gcc-f915e19e62a81b46c613b4d665e1d38ceee16991.tar.gz
gcc-f915e19e62a81b46c613b4d665e1d38ceee16991.tar.bz2
c++: Delete unused hash type
Since I redid block-scope extern decls, the need for a uid->decl hasher has gone away. Deleting thusly. gcc/cp/ * cp-tree.h (struct cxx_int_tree_map): Delete. (struct cxx_int_tree_map_hasher): Delete. * cp-gimplify.c (cxx_int_tree_map_hasher::equal): Delete. (cxx_int_tree_map_hasher::hash): Delete.
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r--gcc/cp/cp-gimplify.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c
index 44c9d24..064a44c 100644
--- a/gcc/cp/cp-gimplify.c
+++ b/gcc/cp/cp-gimplify.c
@@ -680,22 +680,6 @@ is_invisiref_parm (const_tree t)
&& DECL_BY_REFERENCE (t));
}
-/* Return true if the uid in both int tree maps are equal. */
-
-bool
-cxx_int_tree_map_hasher::equal (cxx_int_tree_map *a, cxx_int_tree_map *b)
-{
- return (a->uid == b->uid);
-}
-
-/* Hash a UID in a cxx_int_tree_map. */
-
-unsigned int
-cxx_int_tree_map_hasher::hash (cxx_int_tree_map *item)
-{
- return item->uid;
-}
-
/* A stable comparison routine for use with splay trees and DECLs. */
static int