From patchwork Tue Mar 5 16:04:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 31719 Received: (qmail 32327 invoked by alias); 5 Mar 2019 16:04:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 32039 invoked by uid 89); 5 Mar 2019 16:04:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1464, Tested, FYI, fyi X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Mar 2019 16:04:56 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 0D62C5613B; Tue, 5 Mar 2019 11:04:55 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24hEDovSr-IC; Tue, 5 Mar 2019 11:04:55 -0500 (EST) Received: from murgatroyd.Home (75-166-85-218.hlrn.qwest.net [75.166.85.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id AEF77560E5; Tue, 5 Mar 2019 11:04:54 -0500 (EST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI] Remove gdb_bfd_fdopenr Date: Tue, 5 Mar 2019 09:04:51 -0700 Message-Id: <20190305160451.11520-1-tromey@adacore.com> MIME-Version: 1.0 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/ChangeLog | 5 +++++ gdb/gdb_bfd.c | 10 ---------- gdb/gdb_bfd.h | 5 ----- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index b0824ad2103..5c6bbef551d 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); diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h index 507f4e46b95..87b48f51f7c 100644 --- a/gdb/gdb_bfd.h +++ b/gdb/gdb_bfd.h @@ -161,11 +161,6 @@ gdb_bfd_ref_ptr gdb_bfd_openr_iovec (const char *filename, const char *target, gdb_bfd_ref_ptr gdb_bfd_openr_next_archived_file (bfd *archive, bfd *previous); -/* A wrapper for bfd_fdopenr that initializes the gdb-specific - reference count. */ - -gdb_bfd_ref_ptr gdb_bfd_fdopenr (const char *filename, const char *target, - int fd);