From patchwork Thu Jul 4 17:02:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 33553 Received: (qmail 106700 invoked by alias); 4 Jul 2019 17:03:36 -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 105566 invoked by uid 89); 4 Jul 2019 17:03:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.4 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=heights, H*RU:esmtpa, H*r:esmtpa, HX-Spam-Relays-External:esmtpa X-HELO: gateway33.websitewelcome.com Received: from gateway33.websitewelcome.com (HELO gateway33.websitewelcome.com) (192.185.145.216) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Jul 2019 17:03:24 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway33.websitewelcome.com (Postfix) with ESMTP id C8190A66545 for ; Thu, 4 Jul 2019 12:03:22 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id j58khF0ME90onj58khBMZB; Thu, 04 Jul 2019 12:03:22 -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=k7v9IxdlJAsVb10ew0mGjuORpoZFgyH/sXCTMB+lLdQ=; b=lZWMQNMsSPMu7pVQ19/Ftb/L+z tKnSQN3WuTKGuypDpkhh3KeXiIDIvuPh3c5MKRqB6KFFo3b1YsK1h2yY0Floso0XXk1jPRtJ3UTBr NJwSpCX1Edsr0WPXuQYwlGq6Q; Received: from 174-29-58-150.hlrn.qwest.net ([174.29.58.150]:34694 helo=bapiya.Home) by box5379.bluehost.com with esmtpa (Exim 4.92) (envelope-from ) id 1hj58k-002sFu-JE; Thu, 04 Jul 2019 12:03:22 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 23/61] Remove tui_set_win_height Date: Thu, 4 Jul 2019 11:02:33 -0600 Message-Id: <20190704170311.15982-24-tom@tromey.com> In-Reply-To: <20190704170311.15982-1-tom@tromey.com> References: <20190704170311.15982-1-tom@tromey.com> tui_set_win_height_command is just a simple wrapper for tui_set_win_height, so rename the latter and remove the wrapper. 2019-07-04 Tom Tromey * tui/tui-win.c (tui_set_win_height_command): Rename from tui_set_win_height. (tui_set_win_height_command): Remove. --- gdb/ChangeLog | 6 ++++++ gdb/tui/tui-win.c | 12 +----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index a7f87e1de13..7abb8d1e98f 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -62,7 +62,6 @@ static enum tui_status tui_adjust_win_heights (struct tui_win_info *, static int new_height_ok (struct tui_win_info *, int); static void tui_set_tab_width_command (const char *, int); static void tui_refresh_all_command (const char *, int); -static void tui_set_win_height_command (const char *, int); static void tui_all_windows_info (const char *, int); static void tui_set_focus_command (const char *, int); static void tui_scroll_forward_command (const char *, int); @@ -991,7 +990,7 @@ tui_set_tab_width_command (const char *arg, int from_tty) /* Set the height of the specified window. */ static void -tui_set_win_height (const char *arg, int from_tty) +tui_set_win_height_command (const char *arg, int from_tty) { /* Make sure the curses mode is enabled. */ tui_enable (); @@ -1069,15 +1068,6 @@ The window name specified must be valid and visible.\n")); printf_filtered (WIN_HEIGHT_USAGE); } -/* Set the height of the specified window, with va_list. */ -static void -tui_set_win_height_command (const char *arg, int from_tty) -{ - /* Make sure the curses mode is enabled. */ - tui_enable (); - tui_set_win_height (arg, from_tty); -} - /* Function to adjust all window heights around the primary. */ static enum tui_status tui_adjust_win_heights (struct tui_win_info *primary_win_info,