From: Nathan Sidwell Date: Tue, 19 Jan 2021 14:49:08 +0000 (-0800) Subject: c++: Remove unused fn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7266ff2a243715e20882850b2fc4211ac7db4d34;p=gcc.git 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. --- diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index 3b224b616c1..3b40c7ead05 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 (node)); + return HT_IDENT_TO_GCC_IDENT (HT_NODE (const_cast (node))); } /* During duplicate detection we need to tell some comparators that