aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2021-01-19 06:49:08 -0800
committerNathan Sidwell <nathan@acm.org>2021-01-19 11:37:42 -0800
commit7266ff2a243715e20882850b2fc4211ac7db4d34 (patch)
tree3f1b97d327a4c24e9e22e739371cff818aa325c0 /gcc/cp
parent6e6f3ed47e5cb575819f8253e42313664b89b042 (diff)
downloadgcc-7266ff2a243715e20882850b2fc4211ac7db4d34.zip
gcc-7266ff2a243715e20882850b2fc4211ac7db4d34.tar.gz
gcc-7266ff2a243715e20882850b2fc4211ac7db4d34.tar.bz2
c++: Remove unused fn
I had two overloads of a function, but only one was needed. Let's keep the constant one. gcc/cp/ * module.cc (identifier): Merge overloads.
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/module.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 3b224b6..3b40c7e 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -276,13 +276,10 @@ static inline cpp_hashnode *cpp_node (tree id)
{
return CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (id));
}
-static inline tree identifier (cpp_hashnode *node)
-{
- return HT_IDENT_TO_GCC_IDENT (HT_NODE (node));
-}
-static inline const_tree identifier (const cpp_hashnode *node)
+
+static inline tree identifier (const cpp_hashnode *node)
{
- return identifier (const_cast <cpp_hashnode *> (node));
+ return HT_IDENT_TO_GCC_IDENT (HT_NODE (const_cast<cpp_hashnode *> (node)));
}
/* During duplicate detection we need to tell some comparators that