From: Kazu Hirata Date: Sat, 18 Apr 2009 20:23:05 +0000 (+0000) Subject: cp-tree.h: Remove the prototype for insert_block. X-Git-Tag: releases/gcc-4.5.0~6425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=149ccdd45da46cb04df8efea654a52cf55573c87;p=thirdparty%2Fgcc.git cp-tree.h: Remove the prototype for insert_block. * cp-tree.h: Remove the prototype for insert_block. * decl.c (insert_block): Remove. From-SVN: r146326 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1991ad6beacd..bfa05e545d88 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-04-18 Kazu Hirata + + * cp-tree.h: Remove the prototype for insert_block. + * decl.c (insert_block): Remove. + 2009-04-16 Ian Lance Taylor * cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index e416edfe6856..6637d4f32b8d 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4307,7 +4307,6 @@ extern void adjust_clone_args (tree); /* decl.c */ extern tree poplevel (int, int, int); -extern void insert_block (tree); extern tree pushdecl (tree); extern tree pushdecl_maybe_friend (tree, bool); extern void cxx_init_decl_processing (void); diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 707bd338217b..cd550f224cb0 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -783,18 +783,6 @@ poplevel (int keep, int reverse, int functionbody) POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, block); } -/* 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. */ - -void -insert_block (tree block) -{ - TREE_USED (block) = 1; - current_binding_level->blocks - = chainon (current_binding_level->blocks, block); -} - /* Walk all the namespaces contained NAMESPACE, including NAMESPACE itself, calling F for each. The DATA is passed to F as well. */