aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-04-23 10:48:40 -0600
committerTom Tromey <tromey@adacore.com>2019-04-23 10:48:40 -0600
commit9e97ba436a8e59ac4574001d618240eac0328934 (patch)
treea955428e78fb20cf54078673166cffe6d4791ca6 /gdb/dwarf2read.c
parent5c565afd4c7ab6f3d287c9abd288d1d1e3e7cade (diff)
downloadgdb-9e97ba436a8e59ac4574001d618240eac0328934.zip
gdb-9e97ba436a8e59ac4574001d618240eac0328934.tar.gz
gdb-9e97ba436a8e59ac4574001d618240eac0328934.tar.bz2
Remove unused overload of line_header::file_name_at
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 829b07f..e182935 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 {};