Commit 44b37b93 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Anthony Liguori
Browse files

remove text_console_opts


Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 4104833f
...@@ -1437,7 +1437,6 @@ void console_color_init(DisplayState *ds) ...@@ -1437,7 +1437,6 @@ void console_color_init(DisplayState *ds)
static int n_text_consoles; static int n_text_consoles;
static CharDriverState *text_consoles[128]; static CharDriverState *text_consoles[128];
static QemuOpts *text_console_opts[128];
static void text_console_set_echo(CharDriverState *chr, bool echo) static void text_console_set_echo(CharDriverState *chr, bool echo)
{ {
...@@ -1446,7 +1445,7 @@ static void text_console_set_echo(CharDriverState *chr, bool echo) ...@@ -1446,7 +1445,7 @@ static void text_console_set_echo(CharDriverState *chr, bool echo)
s->echo = echo; s->echo = echo;
} }
static void text_console_do_init(CharDriverState *chr, DisplayState *ds, QemuOpts *opts) static void text_console_do_init(CharDriverState *chr, DisplayState *ds)
{ {
TextConsole *s; TextConsole *s;
static int color_inited; static int color_inited;
...@@ -1520,7 +1519,6 @@ CharDriverState *text_console_init(QemuOpts *opts) ...@@ -1520,7 +1519,6 @@ CharDriverState *text_console_init(QemuOpts *opts)
exit(1); exit(1);
} }
text_consoles[n_text_consoles] = chr; text_consoles[n_text_consoles] = chr;
text_console_opts[n_text_consoles] = opts;
n_text_consoles++; n_text_consoles++;
width = qemu_opt_get_number(opts, "width", 0); width = qemu_opt_get_number(opts, "width", 0);
...@@ -1555,9 +1553,7 @@ void text_consoles_set_display(DisplayState *ds) ...@@ -1555,9 +1553,7 @@ void text_consoles_set_display(DisplayState *ds)
int i; int i;
for (i = 0; i < n_text_consoles; i++) { for (i = 0; i < n_text_consoles; i++) {
text_console_do_init(text_consoles[i], ds, text_console_opts[i]); text_console_do_init(text_consoles[i], ds);
qemu_opts_del(text_console_opts[i]);
text_console_opts[i] = NULL;
} }
n_text_consoles = 0; n_text_consoles = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment