diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-12 21:08:34 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-12 21:08:34 +0000 |
commit | e7fef81b550973a86930ebc7a3f5e6e6403ccc9c (patch) | |
tree | 8b1a30810d2de64d543c449e12e7f4429b3bb4a3 /gcc/cp | |
parent | 618e262b940b565097aee940672510e482c73295 (diff) | |
download | gcc-e7fef81b550973a86930ebc7a3f5e6e6403ccc9c.tar.gz |
* pt.c (template_parms_variadic_p): Remove.
* cp-tree.h: Remove the prototype for template_parms_variadic_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126603 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/pt.c | 11 |
3 files changed, 5 insertions, 12 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 61c614ff6ee..192c8f42738 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 68aeace6e44..86044470ab7 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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); diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 38a4c09d615..3ff4706048c 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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 |