]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cp-tree.h: Remove the prototype for insert_block.
authorKazu Hirata <kazu@codesourcery.com>
Sat, 18 Apr 2009 20:23:05 +0000 (20:23 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 18 Apr 2009 20:23:05 +0000 (20:23 +0000)
* cp-tree.h: Remove the prototype for insert_block.
* decl.c (insert_block): Remove.

From-SVN: r146326

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c

index 1991ad6beacdb15389f81a7fd037935bf7e723bd..bfa05e545d88721c65dc63bfcf0edcc2a0a63340 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
+
+       * cp-tree.h: Remove the prototype for insert_block.
+       * decl.c (insert_block): Remove.
+
 2009-04-16  Ian Lance Taylor  <iant@google.com>
 
        * cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t.
index e416edfe6856d43c057737c0cb58a2b81263f84f..6637d4f32b8d921520d70767c9439a4010592e34 100644 (file)
@@ -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);
index 707bd338217be52727cc106f38495bb942f6d090..cd550f224cb09512d71c1d0836be1fd34de04b65 100644 (file)
@@ -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.  */