From 7266ff2a243715e20882850b2fc4211ac7db4d34 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 19 Jan 2021 06:49:08 -0800 Subject: [PATCH] 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. --- gcc/cp/module.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 -- 2.30.2