aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-01-18 23:46:24 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-01-18 23:46:24 +0000
commit1fe94b97e55fcbc14419a17b2a485fe4186619d3 (patch)
tree26ab1ba1a095d55ff32c5f39e1b8c339a1f3f77b /gcc/cp/decl.c
parent8c96cd51c7156218a1b26da8d08885649d234aee (diff)
downloadgcc-1fe94b97e55fcbc14419a17b2a485fe4186619d3.zip
gcc-1fe94b97e55fcbc14419a17b2a485fe4186619d3.tar.gz
gcc-1fe94b97e55fcbc14419a17b2a485fe4186619d3.tar.bz2
decl.c (delete_block): Remove.
* decl.c (delete_block): Remove. * cp-tree.h: Remove the corresponding prototype. From-SVN: r93866
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index e664b1c..d72ecb9 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -742,29 +742,6 @@ poplevel (int keep, int reverse, int functionbody)
POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, block);
}
-/* Delete the node BLOCK from the current binding level.
- This is used for the block inside a stmt expr ({...})
- so that the block can be reinserted where appropriate. */
-
-void
-delete_block (tree block)
-{
- tree t;
- if (current_binding_level->blocks == block)
- current_binding_level->blocks = TREE_CHAIN (block);
- for (t = current_binding_level->blocks; t;)
- {
- if (TREE_CHAIN (t) == block)
- TREE_CHAIN (t) = TREE_CHAIN (block);
- else
- t = TREE_CHAIN (t);
- }
- TREE_CHAIN (block) = NULL_TREE;
- /* Clear TREE_USED which is always set by poplevel.
- The flag is set again if insert_block is called. */
- TREE_USED (block) = 0;
-}
-
/* Insert BLOCK at the end of the list of subblocks of the
current binding level. This is used when a BIND_EXPR is expanded,
to handle the BLOCK node inside the BIND_EXPR. */