From 219441f2b86850b9fd2d4bc997f1162724605dd4 Mon Sep 17 00:00:00 2001 From: Gabriel Charette Date: Fri, 24 Jun 2011 13:06:10 +0000 Subject: [PATCH] name-lookup.h (cp_binding_level): Removed unused member names_size. 2011-06-23 Gabriel Charette * name-lookup.h (cp_binding_level): Removed unused member names_size. Update all users. From-SVN: r175373 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/name-lookup.c | 1 - gcc/cp/name-lookup.h | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 12b12e577da..e860837f4e8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2011-06-23 Gabriel Charette + + * name-lookup.h (cp_binding_level): Removed unused + member names_size. Update all users. + 2011-06-23 Jason Merrill PR c++/49519 diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 953edd57f22..8bf5f5fde66 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -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 diff --git a/gcc/cp/name-lookup.h b/gcc/cp/name-lookup.h index 009b5d982f1..5f266eb9fc6 100644 --- a/gcc/cp/name-lookup.h +++ b/gcc/cp/name-lookup.h @@ -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; -- 2.30.2