From 06f624bab80cb9dbb9bebd258f729c84b4e0d967 Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Wed, 8 Sep 2004 01:24:26 +0000 Subject: [PATCH] c-decl.c (groktypename_in_parm_context): Remove function. [gcc/ChangeLog] 2004-09-07 Ziemowit Laski * c-decl.c (groktypename_in_parm_context): Remove function. * c-tree.h (groktypename_in_parm_context): Remove prototype. From-SVN: r87169 --- gcc/ChangeLog | 5 +++++ gcc/c-decl.c | 12 ------------ gcc/c-tree.h | 1 - 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9fe8d307df..2935df70922 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-07 Ziemowit Laski + + * c-decl.c (groktypename_in_parm_context): Remove function. + * c-tree.h (groktypename_in_parm_context): Remove prototype. + 2004-09-07 Ziemowit Laski * Makefile.in (c-parse.o): Depend on $(C_COMMON_H). diff --git a/gcc/c-decl.c b/gcc/c-decl.c index aad75640ca9..0ffda691861 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2887,18 +2887,6 @@ groktypename (tree type_name) return type_name; } -/* Return a PARM_DECL node for a given pair of specs and declarator. */ - -tree -groktypename_in_parm_context (tree type_name) -{ - if (TREE_CODE (type_name) != TREE_LIST) - return type_name; - return grokdeclarator (TREE_VALUE (type_name), - TREE_PURPOSE (type_name), - PARM, false, NULL); -} - /* Decode a declarator in an ordinary declaration or data definition. This is called as soon as the type information and variable name have been parsed, before parsing the initializer if any. diff --git a/gcc/c-tree.h b/gcc/c-tree.h index acecbe96768..104fe0c4c7f 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -181,7 +181,6 @@ extern tree get_parm_info (bool); extern tree grokfield (tree, tree, tree); extern void split_specs_attrs (tree, tree *, tree *); extern tree groktypename (tree); -extern tree groktypename_in_parm_context (tree); extern tree grokparm (tree); extern tree implicitly_declare (tree); extern void keep_next_level (void); -- 2.30.2