From: Tom Tromey Date: Mon, 25 Nov 2013 16:53:06 +0000 (-0700) Subject: remove objfile_to_front X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53e0e56d645d638fdbbf69553e6d323e8b29cbae;p=binutils-gdb.git remove objfile_to_front I happened to notice that nothing uses objfile_to_front. This patch removes it. 2013-12-06 Tom Tromey * objfiles.h (objfile_to_front): Remove. * objfiles.c (objfile_to_front): Remove. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3449b721111..c5cd9ba8e72 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-12-06 Tom Tromey + + * objfiles.h (objfile_to_front): Remove. + * objfiles.c (objfile_to_front): Remove. + 2013-12-06 Tom Tromey * minsyms.c (get_symbol_leading_char): Remove unnecessary diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 1b957cc25e5..6fb08ea267b 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -449,26 +449,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 bc16dc73758..4920e4d6fbc 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -455,8 +455,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 *);