From fa760f46b50745385bf9a738e55064e7b32430db Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 7 Aug 2013 20:06:37 +0000 Subject: remove unused qf method After the previous patch in the series, nothing uses the "quick" method find_symbol_file. This patch removes it. Tested by rebuilding. * dwarf2read.c (dw2_get_primary_filename_reader): Remove. (dwarf2_gdb_index_functions): Update. * psymtab.c (find_symbol_file_from_partial): Remove. (psym_functions): Update. * symfile.h (struct quick_symbol_functions) : Remove. --- gdb/psymtab.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gdb/psymtab.c') diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 10bd844..3bab747 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1206,19 +1206,6 @@ psymtab_to_fullname (struct partial_symtab *ps) return ps->fullname; } -static const char * -find_symbol_file_from_partial (struct objfile *objfile, const char *name) -{ - struct partial_symtab *pst; - - ALL_OBJFILE_PSYMTABS_REQUIRED (objfile, pst) - { - if (lookup_partial_symbol (objfile, pst, name, 1, VAR_DOMAIN)) - return pst->filename; - } - return NULL; -} - /* For all symbols, s, in BLOCK that are in NAMESPACE and match NAME according to the function MATCH, call CALLBACK(BLOCK, s, DATA). BLOCK is assumed to come from OBJFILE. Returns 1 iff CALLBACK @@ -1442,7 +1429,6 @@ const struct quick_symbol_functions psym_functions = read_symtabs_for_function, expand_partial_symbol_tables, read_psymtabs_with_fullname, - find_symbol_file_from_partial, map_matching_symbols_psymtab, expand_symtabs_matching_via_partial, find_pc_sect_symtab_from_partial, -- cgit v1.1