From patchwork Sat Aug 3 13:29:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 33945 Received: (qmail 96375 invoked by alias); 3 Aug 2019 13:29:41 -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 95769 invoked by uid 89); 3 Aug 2019 13:29:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.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= X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 03 Aug 2019 13:29:36 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 84C3924A74 for ; Sat, 3 Aug 2019 08:29:35 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id tu6JhsgBCiQertu6JhGrcB; Sat, 03 Aug 2019 08:29:35 -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=veXk9NhV62roWBLpn4IOPFFcfZi0yDzk+RXRTCYhMDE=; b=C+aBYBh4IyeLYnsXLt2aN9ZZW7 UW2RV/GEhLcveIqbhYvEdDQnjJoXlsMVpkZ8JcUAkgcEac76XFsbjaxlUZKjhz9VxLkCCCQPMe7v+ JPXf63MWfjDjcvl4rOA8PH5Dk; Received: from 97-122-178-82.hlrn.qwest.net ([97.122.178.82]:36980 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1htu6J-003nqS-9l; Sat, 03 Aug 2019 08:29:35 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 19/19] Remove tui_gen_win_info::last_visible_line Date: Sat, 3 Aug 2019 07:29:25 -0600 Message-Id: <20190803132925.25074-20-tom@tromey.com> In-Reply-To: <20190803132925.25074-1-tom@tromey.com> References: <20190803132925.25074-1-tom@tromey.com> The last_visible_line field of tui_gen_win_info is not used, so remove it. gdb/ChangeLog 2019-08-03 Tom Tromey * tui/tui-data.h (struct tui_gen_win_info) : Remove. * tui/tui-data.c (tui_initialize_static_data): Update. --- gdb/ChangeLog | 6 ++++++ gdb/tui/tui-data.c | 3 +-- gdb/tui/tui-data.h | 2 -- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index bb725c199cc..add1f33926f 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -262,8 +262,7 @@ tui_initialize_static_data () win->height = win->origin.x = win->origin.y = - win->viewport_height = - win->last_visible_line = 0; + win->viewport_height = 0; win->handle = NULL; win->is_visible = false; win->title = 0; diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 08178e49ea8..3493b5ed68b 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -79,8 +79,6 @@ public: struct tui_point origin = {0, 0}; /* Viewport height. */ int viewport_height = 0; - /* Index of last visible line. */ - int last_visible_line = 0; /* Whether the window is visible or not. */ bool is_visible = false; /* Window title to display. */