From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22045 invoked by alias); 10 Dec 2014 18:09:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 22033 invoked by uid 89); 10 Dec 2014 18:09:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 10 Dec 2014 18:09:15 +0000 Received: by mail-pa0-f42.google.com with SMTP id et14so3285944pad.29 for ; Wed, 10 Dec 2014 10:09:14 -0800 (PST) X-Received: by 10.66.97.39 with SMTP id dx7mr9359554pab.65.1418234954001; Wed, 10 Dec 2014 10:09:14 -0800 (PST) Received: from seba.sebabeach.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id i11sm4820693pbq.23.2014.12.10.10.09.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Dec 2014 10:09:13 -0800 (PST) From: Doug Evans To: gdb-patches@sourceware.org Subject: [COMMITTED PATCH] cp_lookup_symbol_imports: Make static. Date: Wed, 10 Dec 2014 18:09:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00220.txt.bz2 Hi. A simple obvious cleanup. 2014-12-10 Doug Evans * cp-namespace.c (cp_lookup_symbol_imports): Make static. * cp-support.c (cp_lookup_symbol_imports): Delete. 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,