[COMMITTED] cp_lookup_symbol_imports: Make static.

Message ID m3d27r4bu1.fsf@sspiff.org
State Committed
Headers

Commit Message

Doug Evans Dec. 10, 2014, 6:08 p.m. UTC
  Hi.

A simple obvious cleanup.

2014-12-10  Doug Evans  <xdje42@gmail.com>

	* cp-namespace.c (cp_lookup_symbol_imports): Make static.
	* cp-support.c (cp_lookup_symbol_imports): Delete.
  

Patch

diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index fcfd17b..7e971e0 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -299,7 +299,7 @@  reset_directive_searched (void *data)
    namespaces X and Y will be considered.  If SEARCH_PARENTS is false
    only the import of Y is considered.  */
 
-struct symbol *
+static struct symbol *
 cp_lookup_symbol_imports (const char *scope,
                           const char *name,
                           const struct block *block,
diff --git a/gdb/cp-support.h b/gdb/cp-support.h
index c0ae35b..ede16f0 100644
--- a/gdb/cp-support.h
+++ b/gdb/cp-support.h
@@ -201,13 +201,6 @@  extern struct symbol *cp_lookup_symbol_namespace (const char *namespace,
 						  const struct block *block,
 						  const domain_enum domain);
 
-extern struct symbol *cp_lookup_symbol_imports (const char *scope,
-                                                const char *name,
-                                                const struct block *block,
-                                                const domain_enum domain,
-                                                const int declaration_only,
-                                                const int search_parents);
-
 extern struct symbol *cp_lookup_symbol_imports_or_template
      (const char *scope,
       const char *name,