name-lookup.h (cp_binding_level): Removed unused member names_size.
authorGabriel Charette <gchare@google.com>
Fri, 24 Jun 2011 13:06:10 +0000 (13:06 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Fri, 24 Jun 2011 13:06:10 +0000 (09:06 -0400)
2011-06-23  Gabriel Charette  <gchare@google.com>

* name-lookup.h (cp_binding_level): Removed unused
member names_size. Update all users.

From-SVN: r175373

gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h

index 12b12e577da9aa271d748da2bbbc2e10234f1981..e860837f4e83e0383e928b541883d0bd835f7294 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-23  Gabriel Charette  <gchare@google.com>
+
+       * name-lookup.h (cp_binding_level): Removed unused
+       member names_size. Update all users.
+
 2011-06-23  Jason Merrill  <jason@redhat.com>
 
        PR c++/49519
index 953edd57f221719ab0a141669c12f213e07116ef..8bf5f5fde662463525d266667c5f150779360bc7 100644 (file)
@@ -541,7 +541,6 @@ add_decl_to_level (tree decl, cxx_scope *b)
         necessary.  */
       TREE_CHAIN (decl) = b->names;
       b->names = decl;
-      b->names_size++;
 
       /* If appropriate, add decl to separate list of statics.  We
         include extern variables because they might turn out to be
index 009b5d982f10bb6aa6643f0f352f8e5927af0122..5f266eb9fc657b6dfae07ed41b91473302b5618b 100644 (file)
@@ -191,9 +191,6 @@ struct GTY(()) cp_binding_level {
        are wrapped in TREE_LISTs; the TREE_VALUE is the OVERLOAD.  */
     tree names;
 
-    /* Count of elements in names chain.  */
-    size_t names_size;
-
     /* A chain of NAMESPACE_DECL nodes.  */
     tree namespaces;