From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13297 invoked by alias); 26 Nov 2013 22:12:04 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 13280 invoked by uid 89); 26 Nov 2013 22:12:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Nov 2013 22:12:02 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAQLntVU006729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Nov 2013 16:49:55 -0500 Received: from barimba.redhat.com (ovpn-113-124.phx2.redhat.com [10.3.113.124]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rAQLnprs008652; Tue, 26 Nov 2013 16:49:54 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 7/8] remove objfile_to_front Date: Tue, 26 Nov 2013 22:37:00 -0000 Message-Id: <1385502587-29757-8-git-send-email-tromey@redhat.com> In-Reply-To: <1385502587-29757-1-git-send-email-tromey@redhat.com> References: <1385502587-29757-1-git-send-email-tromey@redhat.com> X-SW-Source: 2013-11/txt/msg00832.txt.bz2 I happened to notice that nothing uses objfile_to_front. This patch removes it. 2013-11-26 Tom Tromey * objfiles.h (objfile_to_front): Remove. * objfiles.c (objfile_to_front): Remove. --- gdb/ChangeLog | 5 +++++ gdb/objfiles.c | 20 -------------------- gdb/objfiles.h | 2 -- 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/gdb/objfiles.c b/gdb/objfiles.c index ba930fa..e8d641f 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -438,26 +438,6 @@ put_objfile_before (struct objfile *objfile, struct objfile *before_this) _("put_objfile_before: before objfile not in list")); } -/* Put OBJFILE at the front of the list. */ - -void -objfile_to_front (struct objfile *objfile) -{ - struct objfile **objp; - for (objp = &object_files; *objp != NULL; objp = &((*objp)->next)) - { - if (*objp == objfile) - { - /* Unhook it from where it is. */ - *objp = objfile->next; - /* Put it in the front. */ - objfile->next = object_files; - object_files = objfile; - break; - } - } -} - /* Unlink OBJFILE from the list of known objfiles, if it is found in the list. diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 9bca812..3f08d4b 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -453,8 +453,6 @@ extern struct objfile *objfile_separate_debug_iterate (const struct objfile *, extern void put_objfile_before (struct objfile *, struct objfile *); -extern void objfile_to_front (struct objfile *); - extern void add_separate_debug_objfile (struct objfile *, struct objfile *); extern void unlink_objfile (struct objfile *); -- 1.8.1.4