diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-07-12 23:53:13 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2004-07-12 23:53:13 +0000 |
commit | 3ffc4c222bd20390a4b9426c28f756bb621e5f22 (patch) | |
tree | 5d148107c946becfe64bee7142deceefe67c6ad7 /gcc/cp/init.c | |
parent | 5bf4beddf118faba356fcb69f41b8ed9ad9e299c (diff) |
* cp-tree.h (get_aggr_typedef): Remove.
* init.c (get_aggr_typedef): Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@84588 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 9b2a8f56c30..0fa2365e585 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -1299,36 +1299,6 @@ is_aggr_type (tree type, int or_else) return 1; } -/* Like is_aggr_typedef, but returns typedef if successful. */ - -tree -get_aggr_from_typedef (tree name, int or_else) -{ - tree type; - - if (name == error_mark_node) - return NULL_TREE; - - if (IDENTIFIER_HAS_TYPE_VALUE (name)) - type = IDENTIFIER_TYPE_VALUE (name); - else - { - if (or_else) - error ("`%T' fails to be an aggregate typedef", name); - return NULL_TREE; - } - - if (! IS_AGGR_TYPE (type) - && TREE_CODE (type) != TEMPLATE_TYPE_PARM - && TREE_CODE (type) != BOUND_TEMPLATE_TEMPLATE_PARM) - { - if (or_else) - error ("type `%T' is of non-aggregate type", type); - return NULL_TREE; - } - return type; -} - tree get_type_value (tree name) { |