Remove unused overload of line_header::file_name_at
authorTom Tromey <tromey@adacore.com>
Tue, 23 Apr 2019 16:48:40 +0000 (10:48 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 23 Apr 2019 16:48:40 +0000 (10:48 -0600)
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
gdb/dwarf2read.c

index 1b403bc1c23f31997d652c3da4f6bb19648e570f..6a5445bd3c8b098e7294723eb6d9c592756545c2 100644 (file)
@@ -1,3 +1,8 @@
+2019-04-23  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c (line_header::file_name_at): Remove unused
+       overload.
+
 2019-04-23  Tom de Vries  <tdevries@suse.de>
 
        PR gdb/24438
index 829b07f01ac3d92193ebf61ecfc92fd4de38723c..e1829358aa806da199577f0320712a166453bf17 100644 (file)
@@ -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 {};