diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-15 11:17:40 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-22 10:17:44 -0500 |
commit | 903396ad3ea8f84b38362134ef7157c82b32071e (patch) | |
tree | d9616631c3c3a8d4441250782cecf4fcb84f07d4 /hw | |
parent | 74c0d6f02048767f05ba671f1b5ca85aad720446 (diff) |
char: remove qemu_chr_send_event()
It's dead code.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/baum.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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; |