tree.c (hash_chainon): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 17 Jan 2005 08:13:09 +0000 (08:13 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 17 Jan 2005 08:13:09 +0000 (08:13 +0000)
* tree.c (hash_chainon): Remove.
* cp-tree.h: Remove the corresponding prototypes.

From-SVN: r93757

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/tree.c

index 0f7f6b4ca83c13ce92988bc521db732b7f256124..56974b6bd9faf3c6aa335e7ee28f7484729da69a 100644 (file)
@@ -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  <jakub@redhat.com>
 
        PR c++/19263
index 5f091db86b8fc51aed86a64238641b4dc314224e..ffb76d535ed124f285a204903efab306d1a6ec65 100644 (file)
@@ -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);
index b9a7a250039182e74b04ded76693751cb2485411..2b6c96ebfc6f60e0ab7aff319905c7f872959f25 100644 (file)
@@ -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));
-}
 \f
 void
 debug_binfo (tree elem)