From: Tom Tromey Date: Tue, 23 Apr 2019 16:48:40 +0000 (-0600) Subject: Remove unused overload of line_header::file_name_at X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e97ba436a8e59ac4574001d618240eac0328934;p=binutils-gdb.git 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 * dwarf2read.c (line_header::file_name_at): Remove unused overload. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1b403bc1c23..6a5445bd3c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-04-23 Tom Tromey + + * dwarf2read.c (line_header::file_name_at): Remove unused + overload. + 2019-04-23 Tom de Vries PR gdb/24438 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 {};