Commit 1ce62c32 by Kazu Hirata Committed by Kazu Hirata

class.c (get_enclosing_class): Remove.

	* class.c (get_enclosing_class): Remove.
	* cp-tree.h: Remove the corresponding prototypes.

From-SVN: r93754
parent 724e4d44
2005-01-16 Kazu Hirata <kazu@cs.umass.edu>
* class.c (get_enclosing_class): Remove.
* cp-tree.h: Remove the corresponding prototypes.
2005-01-15 Jakub Jelinek <jakub@redhat.com> 2005-01-15 Jakub Jelinek <jakub@redhat.com>
PR c++/19263 PR c++/19263
......
...@@ -6189,35 +6189,6 @@ contains_empty_class_p (tree type) ...@@ -6189,35 +6189,6 @@ contains_empty_class_p (tree type)
return false; return false;
} }
/* Find the enclosing class of the given NODE. NODE can be a *_DECL or
a *_TYPE node. NODE can also be a local class. */
tree
get_enclosing_class (tree type)
{
tree node = type;
while (node && TREE_CODE (node) != NAMESPACE_DECL)
{
switch (TREE_CODE_CLASS (TREE_CODE (node)))
{
case tcc_declaration:
node = DECL_CONTEXT (node);
break;
case tcc_type:
if (node != type)
return node;
node = TYPE_CONTEXT (node);
break;
default:
gcc_unreachable ();
}
}
return NULL_TREE;
}
/* Note that NAME was looked up while the current class was being /* Note that NAME was looked up while the current class was being
defined and that the result of that lookup was DECL. */ defined and that the result of that lookup was DECL. */
......
...@@ -3709,7 +3709,6 @@ extern void build_self_reference (void); ...@@ -3709,7 +3709,6 @@ extern void build_self_reference (void);
extern int same_signature_p (tree, tree); extern int same_signature_p (tree, tree);
extern void warn_hidden (tree); extern void warn_hidden (tree);
extern void maybe_add_class_template_decl_list (tree, tree, int); extern void maybe_add_class_template_decl_list (tree, tree, int);
extern tree get_enclosing_class (tree);
extern void unreverse_member_declarations (tree); extern void unreverse_member_declarations (tree);
extern void invalidate_class_lookup_cache (void); extern void invalidate_class_lookup_cache (void);
extern void maybe_note_name_used_in_class (tree, tree); extern void maybe_note_name_used_in_class (tree, tree);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment