diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-05 15:06:13 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-05 15:06:13 +0000 |
commit | b6263c5df20b4ab1e4b88b95bde37d836b47dfc9 (patch) | |
tree | 5dc4b3ada78d21b98d31465033b06a8590d96cb6 /gcc/cp/decl.c | |
parent | c02d2d0adb153f819e75b0d9f62fcdf43ff1954d (diff) | |
download | gcc-b6263c5df20b4ab1e4b88b95bde37d836b47dfc9.zip gcc-b6263c5df20b4ab1e4b88b95bde37d836b47dfc9.tar.gz gcc-b6263c5df20b4ab1e4b88b95bde37d836b47dfc9.tar.bz2 |
Kill walk_namespaces.
* cp-tree.h (walk_namespaces_fn, walk_namespaces): Delete.
* decl.c (walk_namespaces_r, walk_namespaces): Delete.
From-SVN: r247638
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index a689750..bd00bc3 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -78,7 +78,6 @@ static void check_for_uninitialized_const_var (tree); static tree local_variable_p_walkfn (tree *, int *, void *); static const char *tag_name (enum tag_types); static tree lookup_and_check_tag (enum tag_types, tree, tag_scope, bool); -static int walk_namespaces_r (tree, walk_namespaces_fn, void *); static void maybe_deduce_size_from_array_init (tree, tree); static void layout_var_decl (tree); static tree check_initializer (tree, tree, int, vec<tree, va_gc> **); @@ -879,32 +878,6 @@ poplevel (int keep, int reverse, int functionbody) return block; } -/* Walk all the namespaces contained NAMESPACE, including NAMESPACE - itself, calling F for each. The DATA is passed to F as well. */ - -static int -walk_namespaces_r (tree name_space, walk_namespaces_fn f, void* data) -{ - int result = 0; - tree current = NAMESPACE_LEVEL (name_space)->namespaces; - - result |= (*f) (name_space, data); - - for (; current; current = DECL_CHAIN (current)) - result |= walk_namespaces_r (current, f, data); - - return result; -} - -/* Walk all the namespaces, calling F for each. The DATA is passed to - F as well. */ - -int -walk_namespaces (walk_namespaces_fn f, void* data) -{ - return walk_namespaces_r (global_namespace, f, data); -} - /* Call wrapup_globals_declarations for the globals in NAMESPACE. */ /* Diagnose odr-used extern inline variables without definitions in the current TU. */ |