From patchwork Mon Jun 24 18:48:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 33350 Received: (qmail 60087 invoked by alias); 24 Jun 2019 18:48:56 -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 60019 invoked by uid 89); 24 Jun 2019 18:48:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_RP_RNBL, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1481 X-HELO: gateway20.websitewelcome.com Received: from gateway20.websitewelcome.com (HELO gateway20.websitewelcome.com) (192.185.52.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jun 2019 18:48:54 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 4CCA2400D5C24 for ; Mon, 24 Jun 2019 12:47:12 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id fU1NhqbRw90onfU1NhopT9; Mon, 24 Jun 2019 13:48:53 -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=9ODxZXdg2PA9r8TdvF9hbR7pjYycK1ARWQ3Gmo3Ko5U=; b=vheVviZNPx0IB0s0yySaZZjFdd sADisTujAx0iTIRTSzwCwaCChhsa9k7oxQyAA3orCLjthmffl4AiHRJvRKkxIWWJ2OpK6im6njZor fw3sO46iUcQiXqIpF29UkbYQP; Received: from 75-166-12-78.hlrn.qwest.net ([75.166.12.78]:56746 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hfU1M-003qDK-Tk; Mon, 24 Jun 2019 13:48:53 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 55/66] Remove tui_init_generic_part Date: Mon, 24 Jun 2019 12:48:30 -0600 Message-Id: <20190624184841.3492-6-tom@tromey.com> In-Reply-To: <20190624184841.3492-1-tom@tromey.com> References: <20190623224329.16060-1-tom@tromey.com> <20190624184841.3492-1-tom@tromey.com> tui_init_generic_part has a single caller, so simply inline it there. 2019-06-23 Tom Tromey * tui/tui-data.h (tui_init_generic_part): Don't declare. * tui/tui-data.c (tui_init_generic_part): Remove, moving contents... (tui_initialize_static_data): ...here. --- gdb/ChangeLog | 7 +++++++ gdb/tui/tui-data.c | 10 ++-------- gdb/tui/tui-data.h | 1 - 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 7b58f9ed52d..e9d0308b86b 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -334,15 +334,9 @@ tui_partial_win_by_name (const char *name) void -tui_initialize_static_data (void) -{ - tui_init_generic_part (tui_locator_win_info_ptr ()); -} - - -void -tui_init_generic_part (struct tui_gen_win_info *win) +tui_initialize_static_data () { + tui_gen_win_info *win = tui_locator_win_info_ptr (); win->width = win->height = win->origin.x = diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index e5fd7e610ea..2306abe1292 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -562,7 +562,6 @@ extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; /* Data Manipulation Functions. */ extern void tui_initialize_static_data (void); -extern void tui_init_generic_part (struct tui_gen_win_info *); extern tui_win_content tui_alloc_content (int, enum tui_win_type); extern int tui_add_content_elements (struct tui_gen_win_info *, int);