diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2009-04-18 11:47:22 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2009-04-18 11:47:22 +0000 |
commit | 613a896b5802a4825303b417974cea6a68b84030 (patch) | |
tree | b54d02e1729a75296bb73b1b56e05abe8f1be98e /gcc/tree-iterator.c | |
parent | 579e694c111bf8fec6ceb3485bca23e3372d04bf (diff) | |
download | gcc-613a896b5802a4825303b417974cea6a68b84030.tar.gz |
tree-iterator.c (expr_only): Remove.
* tree-iterator.c (expr_only): Remove.
* tree.h: Remove the prototype for expr_only.
From-SVN: r146311
Diffstat (limited to 'gcc/tree-iterator.c')
-rw-r--r-- | gcc/tree-iterator.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/tree-iterator.c b/gcc/tree-iterator.c index fabe780a9dc..43218f6b754 100644 --- a/gcc/tree-iterator.c +++ b/gcc/tree-iterator.c @@ -280,29 +280,4 @@ expr_last (tree expr) return expr; } -/* If EXPR is a single statement return it. If EXPR is a - STATEMENT_LIST containing exactly one statement S, return S. - Otherwise, return NULL. */ - -tree -expr_only (tree expr) -{ - if (expr == NULL_TREE) - return NULL_TREE; - - if (TREE_CODE (expr) == STATEMENT_LIST) - { - struct tree_statement_list_node *n = STATEMENT_LIST_TAIL (expr); - if (n && STATEMENT_LIST_HEAD (expr) == n) - return n->stmt; - else - return NULL_TREE; - } - - if (TREE_CODE (expr) == COMPOUND_EXPR) - return NULL_TREE; - - return expr; -} - #include "gt-tree-iterator.h" |