OSDN Git Service

* class.c (get_enclosing_class): Remove.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jan 2005 08:08:12 +0000 (08:08 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jan 2005 08:08:12 +0000 (08:08 +0000)
* cp-tree.h: Remove the corresponding prototypes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93754 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b5e9d32..5e46a8b 100644 (file)
@@ -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
index 4512950..87e7b39 100644 (file)
@@ -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.  */
 
index 81ebd98..855283b 100644 (file)
@@ -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);