mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
char: remove qemu_chr_send_event()
It's dead code. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
74c0d6f020
commit
903396ad3e
4 changed files with 0 additions and 39 deletions
16
console.c
16
console.c
|
@ -1102,21 +1102,6 @@ static int console_puts(CharDriverState *chr, const uint8_t *buf, int len)
|
|||
return len;
|
||||
}
|
||||
|
||||
static void console_send_event(CharDriverState *chr, int event)
|
||||
{
|
||||
TextConsole *s = chr->opaque;
|
||||
int i;
|
||||
|
||||
if (event == CHR_EVENT_FOCUS) {
|
||||
for(i = 0; i < nb_consoles; i++) {
|
||||
if (consoles[i] == s) {
|
||||
console_select(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void kbd_send_chars(void *opaque)
|
||||
{
|
||||
TextConsole *s = opaque;
|
||||
|
@ -1462,7 +1447,6 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds)
|
|||
s = chr->opaque;
|
||||
|
||||
chr->chr_write = console_puts;
|
||||
chr->chr_send_event = console_send_event;
|
||||
|
||||
s->out_fifo.buf = s->out_fifo_buf;
|
||||
s->out_fifo.buf_size = sizeof(s->out_fifo_buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue