From 903396ad3ea8f84b38362134ef7157c82b32071e Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Mon, 15 Aug 2011 11:17:40 -0500 Subject: char: remove qemu_chr_send_event() It's dead code. Signed-off-by: Anthony Liguori --- console.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index 553358b..500b3fb 100644 --- a/console.c +++ b/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); -- cgit v1.1