From patchwork Sat Jun 22 21:29:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 33279 Received: (qmail 99591 invoked by alias); 22 Jun 2019 21:29:07 -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 99580 invoked by uid 89); 22 Jun 2019 21:29:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.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=FYI, fyi, Looking X-HELO: gateway20.websitewelcome.com Received: from gateway20.websitewelcome.com (HELO gateway20.websitewelcome.com) (192.185.69.18) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 22 Jun 2019 21:29:05 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 593C8400C4869 for ; Sat, 22 Jun 2019 15:27:29 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id enZIhVGwR2qH7enZIhebkl; Sat, 22 Jun 2019 16:29:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=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: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GsLW2PtWDRu06Haagy55s/1sa+ylhiHKGu8TcroneFc=; b=K2GIwwO1CqTm+SWSrfNJn9sO+E Cx5fOz2LAC6lImdakW98cJPoxUQB8fsEKyl4Toiy8O4hNziYHraufLJCTDp2vFBVIdnQrz56+yyzN 9NC4IbT1fuoE2DE1kfOjIdf2g; Received: from 75-166-12-78.hlrn.qwest.net ([75.166.12.78]:52252 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1henZI-000xqL-6F; Sat, 22 Jun 2019 16:29:04 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI] Remove tui_first_data_element_no_in_line Date: Sat, 22 Jun 2019 15:29:01 -0600 Message-Id: <20190622212901.658-1-tom@tromey.com> tui_first_data_element_no_in_line is never used. This patch removes it. Tested by rebuilding, and by grep. gdb/ChangeLog 2019-06-22 Tom Tromey * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't declare. * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove. --- gdb/ChangeLog | 6 ++++++ gdb/tui/tui-windata.c | 17 ----------------- gdb/tui/tui-windata.h | 1 - 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c index 8616b6c47b9..646adfbb74d 100644 --- a/gdb/tui/tui-windata.c +++ b/gdb/tui/tui-windata.c @@ -64,23 +64,6 @@ tui_first_data_item_displayed (void) } -/* Answer the index of the first element in line_no. If line_no is - past the data area (-1) is returned. */ -int -tui_first_data_element_no_in_line (int line_no) -{ - int first_element_no = (-1); - - /* First see if there is a register on line_no, and if so, set the - first element number. */ - if ((first_element_no = tui_first_reg_element_no_inline (line_no)) == -1) - { /* Looking at the general data, the 1st element on line_no. */ - } - - return first_element_no; -} - - /* Function to delete all the item windows in the data window. This is usually done when the data window is scrolled. */ void diff --git a/gdb/tui/tui-windata.h b/gdb/tui/tui-windata.h index 63fca0dd287..56bf1ede9b4 100644 --- a/gdb/tui/tui-windata.h +++ b/gdb/tui/tui-windata.h @@ -29,7 +29,6 @@ extern void tui_display_all_data (void); extern void tui_check_data_values (struct frame_info *); extern void tui_display_data_from_line (int); extern int tui_first_data_item_displayed (void); -extern int tui_first_data_element_no_in_line (int); extern void tui_delete_data_content_windows (void); extern void tui_refresh_data_win (void); extern void tui_display_data_from (int, int);