From patchwork Wed Oct 2 23:11:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34807 Received: (qmail 51996 invoked by alias); 2 Oct 2019 23:22:22 -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 51988 invoked by uid 89); 2 Oct 2019 23:22:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.3 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.1 spammy=Answer X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.143.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Oct 2019 23:22:20 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 7EF2DD06CAE for ; Wed, 2 Oct 2019 18:12:06 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id FnmwieVbPHunhFnmwiMERo; Wed, 02 Oct 2019 18:12:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TVj/tcoWMd9jbAeBKPMaT36zuqcGjNmVBMBeBFTdp20=; b=AUi+eR+/neWDoSS5faUSJVe+E9 U6XwthYxLDvrPlrUwQWyW9N45ShVAgWpu/9cs7lfLukPBPzrvcKrw8q9brKJdswkHFHvRHHxT5wB9 VyDyQEae/LyZUPn/8gkFjxkSK; Received: from 75-166-72-156.hlrn.qwest.net ([75.166.72.156]:42570 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iFnmw-003VLt-8P; Wed, 02 Oct 2019 17:12:06 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 3/6] Remove tui_win_is_auxiliary Date: Wed, 2 Oct 2019 17:11:59 -0600 Message-Id: <20191002231202.10940-4-tom@tromey.com> In-Reply-To: <20191002231202.10940-1-tom@tromey.com> References: <20191002231202.10940-1-tom@tromey.com> tui_win_is_auxiliary is not used, so remove it. gdb/ChangeLog 2019-10-02 Tom Tromey * tui/tui-data.c (tui_win_is_auxiliary): Remove. * tui/tui-data.h (tui_win_is_auxiliary): Don't declare. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-data.c | 6 ------ gdb/tui/tui-data.h | 2 -- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 748d8978218..f1f3947e028 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -34,12 +34,6 @@ static struct tui_win_info *win_with_focus = NULL; static bool win_resized = false; -int -tui_win_is_auxiliary (enum tui_win_type win_type) -{ - return (win_type > MAX_MAJOR_WINDOWS); -} - /* Answer a whether the terminal window has been resized or not. */ bool tui_win_resized () diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 264652361ef..6d4fb78334f 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -207,8 +207,6 @@ public: bool is_highlighted = false; }; -extern int tui_win_is_auxiliary (enum tui_win_type win_type); - /* Global Data. */ extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];