Patchwork [FYI] Remove unused overload of line_header::file_name_at

login
register
mail settings
Submitter Tom Tromey
Date April 23, 2019, 4:50 p.m.
Message ID <20190423165018.16703-1-tromey@adacore.com>
Download mbox | patch
Permalink /patch/32394/
State New
Headers show

Comments

Tom Tromey - April 23, 2019, 4:50 p.m.
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  <tromey@adacore.com>

	* dwarf2read.c (line_header::file_name_at): Remove unused
	overload.
---
 gdb/ChangeLog    | 5 +++++
 gdb/dwarf2read.c | 8 --------
 2 files changed, 5 insertions(+), 8 deletions(-)

Patch

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 {};