]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
remove objfile_to_front
authorTom Tromey <tromey@redhat.com>
Mon, 25 Nov 2013 16:53:06 +0000 (09:53 -0700)
committerTom Tromey <tromey@redhat.com>
Fri, 6 Dec 2013 19:13:59 +0000 (12:13 -0700)
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.

gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h

index 3449b721111c0e0206fca85db9475075a3da47eb..c5cd9ba8e72ab2697a5cb9ceb29766ef4e0de38d 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-06  Tom Tromey  <tromey@redhat.com>
+
+       * objfiles.h (objfile_to_front): Remove.
+       * objfiles.c (objfile_to_front): Remove.
+
 2013-12-06  Tom Tromey  <tromey@redhat.com>
 
        * minsyms.c (get_symbol_leading_char): Remove unnecessary
index 1b957cc25e5186ff0b81915f07f3b70773458266..6fb08ea267be4bbc64865f29edaddf6b8eb6f943 100644 (file)
@@ -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.
 
index bc16dc73758f13d582913f62353573ee1229dfff..4920e4d6fbc524c31e0479254fc16cda0da565ca 100644 (file)
@@ -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 *);