[5/8] GC inferior.c:init_inferior_list
Commit Message
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:
yyyy-mm-dd Pedro Alves <palves@redhat.com>
* inferior.c (init_inferior_list): Delete.
* inferior.h (init_inferior_list): Delete.
---
gdb/inferior.c | 18 ------------------
gdb/inferior.h | 3 ---
2 files changed, 21 deletions(-)
Comments
Pedro Alves <palves@redhat.com> writes:
> gdb/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * inferior.c (init_inferior_list): Delete.
> * inferior.h (init_inferior_list): Delete.
It is obvious. Patch is good to me.
@@ -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)
{
@@ -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