From patchwork Tue Apr 23 16:50:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 32394 Received: (qmail 86276 invoked by alias); 23 Apr 2019 16:50:26 -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 86256 invoked by uid 89); 23 Apr 2019 16:50:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=noticed, HContent-Transfer-Encoding:8bit X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Apr 2019 16:50:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 0C7DD116F8B; Tue, 23 Apr 2019 12:50:23 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CBUGEu7Ncars; Tue, 23 Apr 2019 12:50:22 -0400 (EDT) Received: from murgatroyd.Home (97-122-168-123.hlrn.qwest.net [97.122.168.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id AD3EF116F86; Tue, 23 Apr 2019 12:50:22 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI] Remove unused overload of line_header::file_name_at Date: Tue, 23 Apr 2019 10:50:18 -0600 Message-Id: <20190423165018.16703-1-tromey@adacore.com> MIME-Version: 1.0 I noticed that one of the overloads of line_header::file_name_at is unused. This patch removes it. gdb/ChangeLog 2019-04-23 Tom Tromey * dwarf2read.c (line_header::file_name_at): Remove unused overload. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 829b07f01ac..e1829358aa8 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1036,14 +1036,6 @@ struct line_header return &file_names[vec_index]; } - /* Const version of the above. */ - const file_entry *file_name_at (unsigned int index) const - { - if (index >= file_names.size ()) - return NULL; - return &file_names[index]; - } - /* Offset of line number information in .debug_line section. */ sect_offset sect_off {};