]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GC inferior.c:init_inferior_list
authorPedro Alves <palves@redhat.com>
Thu, 13 Apr 2017 15:15:34 +0000 (16:15 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 13 Apr 2017 15:18:16 +0000 (16:18 +0100)
Not used anywhere.  This was actually never used.  It came in because
I originally created inferior.c by copying thread.c, and doing
s/thread/inferior/g, and missed that nothing needs this.  :-)

gdb/ChangeLog:
2017-04-13  Pedro Alves  <palves@redhat.com>

* inferior.c (init_inferior_list): Delete.
* inferior.h (init_inferior_list): Delete.

gdb/ChangeLog
gdb/inferior.c
gdb/inferior.h

index 66a2a14185b6dc3822faf0578abf8f28212dedb1..0f701f03c7af698fa7082efde02561332e66b486 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-13  Pedro Alves  <palves@redhat.com>
+
+       * inferior.c (init_inferior_list): Delete.
+       * inferior.h (init_inferior_list): Delete.
+
 2017-04-13  Pedro Alves  <palves@redhat.com>
 
        PR threads/13217
index 4ae265edab3bd54bb4cc1b4607febb60b543e7a7..54e99676670c829d5cbfc09c7186707cba98582d 100644 (file)
@@ -105,24 +105,6 @@ free_inferior (struct inferior *inf)
   xfree (inf);
 }
 
-void
-init_inferior_list (void)
-{
-  struct inferior *inf, *infnext;
-
-  highest_inferior_num = 0;
-  if (!inferior_list)
-    return;
-
-  for (inf = inferior_list; inf; inf = infnext)
-    {
-      infnext = inf->next;
-      free_inferior (inf);
-    }
-
-  inferior_list = NULL;
-}
-
 struct inferior *
 add_inferior_silent (int pid)
 {
index bf06ac1c7ef4efeaa07ccec2b8d464a09689b458..58fe974f3c12abb4272e4e050159140e5f6c7fb2 100644 (file)
@@ -433,9 +433,6 @@ struct inferior
 
 DECLARE_REGISTRY (inferior);
 
-/* Create an empty inferior list, or empty the existing one.  */
-extern void init_inferior_list (void);
-
 /* Add an inferior to the inferior list, print a message that a new
    inferior is found, and return the pointer to the new inferior.
    Caller may use this pointer to initialize the private inferior