From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94011 invoked by alias); 22 May 2018 05:09:21 -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 16287 invoked by uid 89); 22 May 2018 05:07:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.46.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 May 2018 05:07:45 +0000 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 513AD400D7452 for ; Tue, 22 May 2018 00:07:07 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id KzVrfe0daA3CSKzVrff1mY; Tue, 22 May 2018 00:07:07 -0500 X-Authority-Reason: nr=8 Received: from 174-29-44-154.hlrn.qwest.net ([174.29.44.154]:36532 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fKzVr-003pV7-3R; Tue, 22 May 2018 00:07:07 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 1/9] Remove internal_complaint Date: Tue, 22 May 2018 05:09:00 -0000 Message-Id: <20180522050704.10845-2-tom@tromey.com> In-Reply-To: <20180522050704.10845-1-tom@tromey.com> References: <20180522050704.10845-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fKzVr-003pV7-3R X-Source-Sender: 174-29-44-154.hlrn.qwest.net (bapiya.Home) [174.29.44.154]:36532 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-05/txt/msg00529.txt.bz2 I happened to notice that gdb has both complaint_internal and internal_complaint. The latter is unused, so this patch removes it. gdb/ChangeLog 2018-05-21 Tom Tromey * complaints.c (internal_complaint): Remove. * complaints.h (internal_complaint): Remove. --- gdb/ChangeLog | 5 +++++ gdb/complaints.c | 10 ---------- gdb/complaints.h | 5 ----- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gdb/complaints.c b/gdb/complaints.c index 44e98f8dad..9e5df396eb 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -245,16 +245,6 @@ complaint_internal (struct complaints **complaints, const char *fmt, ...) va_end (args); } -void -internal_complaint (struct complaints **complaints, const char *file, - int line, const char *fmt, ...) -{ - va_list args; - va_start (args, fmt); - vcomplaint (complaints, file, line, fmt, args); - va_end (args); -} - /* Clear out / initialize all complaint counters that have ever been incremented. If LESS_VERBOSE is 1, be less verbose about successive complaints, since the messages are appearing all diff --git a/gdb/complaints.h b/gdb/complaints.h index 3c1b3c5c6b..37648fb525 100644 --- a/gdb/complaints.h +++ b/gdb/complaints.h @@ -47,11 +47,6 @@ extern void complaint_internal (struct complaints **complaints, } \ while (0) -extern void internal_complaint (struct complaints **complaints, - const char *file, int line, - const char *fmt, - ...) ATTRIBUTE_PRINTF (4, 5); - /* Clear out / initialize all complaint counters that have ever been incremented. If LESS_VERBOSE is 1, be less verbose about successive complaints, since the messages are appearing all -- 2.13.6