+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>
PR c++/19263
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
defined and that the result of that lookup was DECL. */
extern int same_signature_p (tree, tree);
extern void warn_hidden (tree);
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 invalidate_class_lookup_cache (void);
extern void maybe_note_name_used_in_class (tree, tree);