aboutsummaryrefslogtreecommitdiffstats
path: root/hw/baum.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-08-15 11:17:40 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-22 10:17:44 -0500
commit903396ad3ea8f84b38362134ef7157c82b32071e (patch)
treed9616631c3c3a8d4441250782cecf4fcb84f07d4 /hw/baum.c
parent74c0d6f02048767f05ba671f1b5ca85aad720446 (diff)
char: remove qemu_chr_send_event()
It's dead code. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/baum.c')
-rw-r--r--hw/baum.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/hw/baum.c b/hw/baum.c
index 1c6d3e277..86d780a61 100644
--- a/hw/baum.c
+++ b/hw/baum.c
@@ -468,20 +468,6 @@ static int baum_write(CharDriverState *chr, const uint8_t *buf, int len)
return orig_len;
}
-/* The other end sent us some event */
-static void baum_send_event(CharDriverState *chr, int event)
-{
- BaumDriverState *baum = chr->opaque;
- switch (event) {
- case CHR_EVENT_BREAK:
- break;
- case CHR_EVENT_OPENED:
- /* Reset state */
- baum->in_buf_used = 0;
- break;
- }
-}
-
/* Send the key code to the other end */
static void baum_send_key(BaumDriverState *baum, uint8_t type, uint8_t value) {
uint8_t packet[] = { type, value };
@@ -591,7 +577,6 @@ int chr_baum_init(QemuOpts *opts, CharDriverState **_chr)
chr->opaque = baum;
chr->chr_write = baum_write;
- chr->chr_send_event = baum_send_event;
chr->chr_accept_input = baum_accept_input;
chr->chr_close = baum_close;