summaryrefslogtreecommitdiffstats
path: root/gcc/cp
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-17 08:08:12 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-17 08:08:12 +0000
commitcc3df9d530cd25c25b3b9aa8c3649af5e359cf9c (patch)
treebc7dc35c98483df04722bca42e910abf0f50e63c /gcc/cp
parent592242bc44bf5dc3eae7597fbd74f63837b04539 (diff)
downloadppe42-gcc-cc3df9d530cd25c25b3b9aa8c3649af5e359cf9c.tar.gz
ppe42-gcc-cc3df9d530cd25c25b3b9aa8c3649af5e359cf9c.zip
* class.c (get_enclosing_class): Remove.
* cp-tree.h: Remove the corresponding prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c29
-rw-r--r--gcc/cp/cp-tree.h1
3 files changed, 5 insertions, 30 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b5e9d32653c..5e46a8b851a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 4512950745b..87e7b397c0e 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -6189,35 +6189,6 @@ contains_empty_class_p (tree type)
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. */
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 81ebd985fc3..855283b3c18 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -3709,7 +3709,6 @@ extern void build_self_reference (void);
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);
OpenPOWER on IntegriCloud