From patchwork Thu Oct 17 22:50:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 35125 Received: (qmail 20308 invoked by alias); 17 Oct 2019 22:59:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 20023 invoked by uid 89); 17 Oct 2019 22:59:32 -0000 Authentication-Results: sourceware.org; auth=none 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, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Oct 2019 22:59:31 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CDBD518C4276 for ; Thu, 17 Oct 2019 22:50:39 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F10B1001DC0 for ; Thu, 17 Oct 2019 22:50:39 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH v2 13/24] Delete exit_inferior_silent(int pid) Date: Thu, 17 Oct 2019 23:50:15 +0100 Message-Id: <20191017225026.30496-14-palves@redhat.com> In-Reply-To: <20191017225026.30496-1-palves@redhat.com> References: <20191017225026.30496-1-palves@redhat.com> In commit 00431a78b28f ("Use thread_info and inferior pointers more throughout"), I introduced 'exit_inferior_silent(inferior *)' and left 'exit_inferior_silent(int)' behind by mistake. This overload isn't used anywhere. It's not declared in inferior.h either, that commit deleted its declaration in favor of the new 'exit_inferior_silent(inferior *)'. gdb/ChangeLog: yyyy-mm-dd Pedro Alves * inferior.c (exit_inferior_silent(int)): Delete. --- gdb/inferior.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gdb/inferior.c b/gdb/inferior.c index 619b8caac7..d2354fa749 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -220,14 +220,6 @@ exit_inferior (inferior *inf) exit_inferior_1 (inf, 0); } -void -exit_inferior_silent (int pid) -{ - struct inferior *inf = find_inferior_pid (pid); - - exit_inferior_1 (inf, 1); -} - void exit_inferior_silent (inferior *inf) {