aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-11-25 09:53:06 -0700
committerTom Tromey <tromey@redhat.com>2013-12-06 12:13:59 -0700
commit53e0e56d645d638fdbbf69553e6d323e8b29cbae (patch)
tree5d9c7cb5cdcdcd97faa6ca185b2623c58006dd1c /gdb/objfiles.c
parent830f7a41e3fb3572d816a9ad257e6d470b8de406 (diff)
remove objfile_to_front
I happened to notice that nothing uses objfile_to_front. This patch removes it. 2013-12-06 Tom Tromey <tromey@redhat.com> * objfiles.h (objfile_to_front): Remove. * objfiles.c (objfile_to_front): Remove.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 1b957cc25e..6fb08ea267 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.