From fbf53020b5a62deb6f105aaca0b62906b8fe49ea Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 17 Jan 2005 08:13:09 +0000 Subject: [PATCH] tree.c (hash_chainon): Remove. * tree.c (hash_chainon): Remove. * cp-tree.h: Remove the corresponding prototypes. From-SVN: r93757 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/cp-tree.h | 1 - gcc/cp/tree.c | 15 --------------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0f7f6b4ca83c..56974b6bd9fa 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -9,6 +9,9 @@ * pt.c (tinst_for_decl): Remove. * cp-tree.h: Remove the corresponding prototypes. + * tree.c (hash_chainon): Remove. + * cp-tree.h: Remove the corresponding prototypes. + 2005-01-15 Jakub Jelinek PR c++/19263 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 5f091db86b8f..ffb76d535ed1 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4242,7 +4242,6 @@ extern tree build_cplus_staticfn_type (tree, tree, tree); extern tree build_cplus_array_type (tree, tree); extern tree hash_tree_cons (tree, tree, tree); extern tree hash_tree_chain (tree, tree); -extern tree hash_chainon (tree, tree); extern int count_functions (tree); extern int is_overloaded_fn (tree); extern tree get_first_fn (tree); diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index b9a7a2500391..2b6c96ebfc6f 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -736,21 +736,6 @@ hash_tree_chain (tree value, tree chain) { return hash_tree_cons (NULL_TREE, value, chain); } - -/* Similar, but used for concatenating two lists. */ - -tree -hash_chainon (tree list1, tree list2) -{ - if (list2 == 0) - return list1; - if (list1 == 0) - return list2; - if (TREE_CHAIN (list1) == NULL_TREE) - return hash_tree_chain (TREE_VALUE (list1), list2); - return hash_tree_chain (TREE_VALUE (list1), - hash_chainon (TREE_CHAIN (list1), list2)); -} void debug_binfo (tree elem) -- 2.47.2