pt.c (tinst_for_decl): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 17 Jan 2005 08:11:20 +0000 (08:11 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 17 Jan 2005 08:11:20 +0000 (08:11 +0000)
* pt.c (tinst_for_decl): Remove.
* cp-tree.h: Remove the corresponding prototypes.

From-SVN: r93756

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

index 47b837c4859d098144bebc7749478cd7e31c2948..0f7f6b4ca83c13ce92988bc521db732b7f256124 100644 (file)
@@ -6,6 +6,9 @@
        * cvt.c (convert_lvalue): Remove.
        * cp-tree.h: Remove the corresponding prototype.
 
+       * pt.c (tinst_for_decl): Remove.
+       * cp-tree.h: Remove the corresponding prototypes.
+
 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/19263
index d2a7b55edee18eba22b255c892150af45ef255c3..5f091db86b8fc51aed86a64238641b4dc314224e 100644 (file)
@@ -4009,7 +4009,6 @@ extern int uses_template_parms_level              (tree, int);
 extern tree instantiate_class_template         (tree);
 extern tree instantiate_template               (tree, tree, tsubst_flags_t);
 extern int fn_type_unification                  (tree, tree, tree, tree, tree, unification_kind_t, int);
-extern tree tinst_for_decl                     (void);
 extern void mark_decl_instantiated             (tree, int);
 extern int more_specialized                    (tree, tree, int, int);
 extern void mark_class_instantiated            (tree, int);
index 972e2669b55fa550f6f877c0f83112f85ebc04b0..72d452890aa0d66fa5977fcaee348ff657b73657 100644 (file)
@@ -5075,20 +5075,6 @@ reopen_tinst_level (tree level)
   pop_tinst_level ();
 }
 
-/* Return the outermost template instantiation context, for use with
-   -falt-external-templates.  */
-
-tree
-tinst_for_decl (void)
-{
-  tree p = current_tinst_level;
-
-  if (p)
-    for (; TREE_CHAIN (p) ; p = TREE_CHAIN (p))
-      ;
-  return p;
-}
-
 /* DECL is a friend FUNCTION_DECL or TEMPLATE_DECL.  ARGS is the
    vector of template arguments, as for tsubst.