From edbd9e45a906970852cee1999ab27c18c18a5ff5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 5 Mar 2019 09:03:55 -0700 Subject: Remove gdb_bfd_fdopenr I noticed that gdb_bfd_fdopenr is no longer used, so this patch removes it. Tested by rebuilding and by grep. gdb/ChangeLog 2019-03-05 Tom Tromey * gdb_bfd.c (gdb_bfd_fdopenr): Remove. * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare. --- gdb/gdb_bfd.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'gdb/gdb_bfd.c') diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index b0824ad..5c6bbef 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -874,16 +874,6 @@ gdb_bfd_record_inclusion (bfd *includer, bfd *includee) gdata->included_bfds.push_back (gdb_bfd_ref_ptr::new_reference (includee)); } -/* See gdb_bfd.h. */ - -gdb_bfd_ref_ptr -gdb_bfd_fdopenr (const char *filename, const char *target, int fd) -{ - bfd *result = bfd_fdopenr (filename, target, fd); - - return gdb_bfd_ref_ptr::new_reference (result); -} - gdb_static_assert (ARRAY_SIZE (_bfd_std_section) == 4); -- cgit v1.1