From aa424b01a1291050106737b4dded3de16da986b6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 18 Apr 2009 11:48:19 +0000 Subject: tree.c (function_args_count): Remove. * tree.c (function_args_count): Remove. * tree.h: Remove the prototype for function_args_count. From-SVN: r146312 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 20 -------------------- gcc/tree.h | 1 - 3 files changed, 5 insertions(+), 21 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ee3685..fa02ee6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2009-04-18 Kazu Hirata + * tree.c (function_args_count): Remove. + * tree.h: Remove the prototype for function_args_count. + +2009-04-18 Kazu Hirata + * tree-iterator.c (expr_only): Remove. * tree.h: Remove the prototype for expr_only. diff --git a/gcc/tree.c b/gcc/tree.c index ac6c31e..9fe6db3 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -9071,26 +9071,6 @@ prototype_p (tree fntype) return (t != NULL_TREE); } -/* Return the number of arguments that a function has. */ - -int -function_args_count (tree fntype) -{ - function_args_iterator args_iter; - tree t; - int num = 0; - - if (fntype) - { - FOREACH_FUNCTION_ARGS(fntype, t, args_iter) - { - num++; - } - } - - return num; -} - /* If BLOCK is inlined from an __attribute__((__artificial__)) routine, return pointer to location from where it has been called. */ diff --git a/gcc/tree.h b/gcc/tree.h index a83151d..793dcf3 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4655,7 +4655,6 @@ extern tree create_artificial_label (void); extern const char *get_name (tree); extern bool stdarg_p (tree); extern bool prototype_p (tree); -extern int function_args_count (tree); extern bool auto_var_in_fn_p (const_tree, const_tree); /* In gimplify.c */ -- cgit v1.1