pt.c (template_parms_variadic_p): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Thu, 12 Jul 2007 21:08:34 +0000 (21:08 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 12 Jul 2007 21:08:34 +0000 (21:08 +0000)
* pt.c (template_parms_variadic_p): Remove.
* cp-tree.h: Remove the prototype for template_parms_variadic_p.

From-SVN: r126603

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

index 61c614f..192c8f4 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-12  Kazu Hirata  <kazu@codesourcery.com>
+
+       * pt.c (template_parms_variadic_p): Remove.
+       * cp-tree.h: Remove the prototype for template_parms_variadic_p.
+
 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/30854
index 68aeace..8604447 100644 (file)
@@ -4416,7 +4416,6 @@ extern tree instantiate_decl                      (tree, int, bool);
 extern int comp_template_parms                 (tree, tree);
 extern bool uses_parameter_packs                (tree);
 extern bool template_parameter_pack_p           (tree);
-extern bool template_parms_variadic_p           (tree);
 extern tree make_pack_expansion                 (tree);
 extern bool check_for_bare_parameter_packs      (tree);
 extern int template_class_depth                        (tree);
index 38a4c09..3ff4706 100644 (file)
@@ -2334,17 +2334,6 @@ template_parameter_pack_p (tree parm)
          && TEMPLATE_TYPE_PARAMETER_PACK (parm));
 }
 
-/* Determine whether PARMS describes a variadic template parameter
-   list, i.e., one that is terminated by a template parameter pack.  */
-bool 
-template_parms_variadic_p (tree parms)
-{
-  int nparms = TREE_VEC_LENGTH (parms);
-  tree last_parm = TREE_VALUE (TREE_VEC_ELT (parms, nparms - 1));
-  
-  return template_parameter_pack_p (last_parm);
-}
-
 /* Determine whether ARGS describes a variadic template args list,
    i.e., one that is terminated by a template argument pack.  */
 static bool