diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2006-01-18 15:09:43 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2006-01-18 15:09:43 +0000 |
commit | 271872469229d4cd8af5a9aa6bf625ba776ede3a (patch) | |
tree | be7f36902eb44f36ceb6f4c89775fdacc8bc3e1a /gcc | |
parent | b6438f2ed0fa323eedc921df2aeecb8f3d18924c (diff) | |
download | gcc-271872469229d4cd8af5a9aa6bf625ba776ede3a.zip gcc-271872469229d4cd8af5a9aa6bf625ba776ede3a.tar.gz gcc-271872469229d4cd8af5a9aa6bf625ba776ede3a.tar.bz2 |
tree.c (find_tree_t, find_tree): Remove.
* tree.c (find_tree_t, find_tree): Remove.
* cp-tree.h: Remove the prototype for find_tree.
From-SVN: r109892
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/tree.c | 22 |
3 files changed, 5 insertions, 23 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f7201ba..1ed12d6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-01-18 Kazu Hirata <kazu@codesourcery.com> + + * tree.c (find_tree_t, find_tree): Remove. + * cp-tree.h: Remove the prototype for find_tree. + 2006-01-18 Jakub Jelinek <jakub@redhat.com> * search.c (lookup_conversions_r): Fix a pasto. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 3fbaff8..bcd115d 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4287,7 +4287,6 @@ extern special_function_kind special_function_p (tree); extern int count_trees (tree); extern int char_type_p (tree); extern void verify_stmt_tree (tree); -extern tree find_tree (tree, tree); extern linkage_kind decl_linkage (tree); extern tree cp_walk_subtrees (tree*, int*, walk_tree_fn, void*, struct pointer_set_t*); diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 96b461c..9d1a619 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -46,7 +46,6 @@ static cp_lvalue_kind lvalue_p_1 (tree, int); static tree build_target_expr (tree, tree); static tree count_trees_r (tree *, int *, void *); static tree verify_stmt_tree_r (tree *, int *, void *); -static tree find_tree_r (tree *, int *, void *); static tree build_local_temp (tree); static tree handle_java_interface_attribute (tree *, tree, tree, int, bool *); @@ -1037,27 +1036,6 @@ verify_stmt_tree (tree t) htab_delete (statements); } -/* Called from find_tree via walk_tree. */ - -static tree -find_tree_r (tree* tp, - int* walk_subtrees ATTRIBUTE_UNUSED , - void* data) -{ - if (*tp == (tree) data) - return (tree) data; - - return NULL_TREE; -} - -/* Returns X if X appears in the tree structure rooted at T. */ - -tree -find_tree (tree t, tree x) -{ - return walk_tree_without_duplicates (&t, find_tree_r, x); -} - /* Check if the type T depends on a type with no linkage and if so, return it. If RELAXED_P then do not consider a class type declared within a TREE_PUBLIC function to have no linkage. */ |