tree.c (function_args_count): Remove.

* tree.c (function_args_count): Remove.
	* tree.h: Remove the prototype for function_args_count.

From-SVN: r146312
This commit is contained in:
Kazu Hirata 2009-04-18 11:48:19 +00:00 committed by Kazu Hirata
parent 613a896b58
commit aa424b01a1
3 changed files with 5 additions and 21 deletions

View file

@ -1,3 +1,8 @@
2009-04-18 Kazu Hirata <kazu@codesourcery.com>
* tree.c (function_args_count): Remove.
* tree.h: Remove the prototype for function_args_count.
2009-04-18 Kazu Hirata <kazu@codesourcery.com>
* tree-iterator.c (expr_only): Remove.

View file

@ -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. */

View file

@ -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 */