From 12f55d13898675a4b9877abaa3e85e7c6eb14ac1 Mon Sep 17 00:00:00 2001 From: yliu79 Date: Wed, 22 May 2019 10:35:12 -0700 Subject: [PATCH] DM: remove unused function console_key_event Change-Id: I6ab81750757fd12929fd60c9d7fa92fd96c9520b Tracked-On: #3123 Signed-off-by: Ying Liu Acked-by: Anthony Xu --- devicemodel/core/console.c | 7 ------- devicemodel/include/console.h | 1 - 2 files changed, 8 deletions(-) diff --git a/devicemodel/core/console.c b/devicemodel/core/console.c index 03314bf19..ca72d37cf 100644 --- a/devicemodel/core/console.c +++ b/devicemodel/core/console.c @@ -90,13 +90,6 @@ console_ptr_unregister() console.ptr_priority = 0; } -void -console_key_event(int down, uint32_t keysym) -{ - if (console.kbd_event_cb) - (*console.kbd_event_cb)(down, keysym, console.kbd_arg); -} - void console_ptr_event(uint8_t button, int x, int y) { diff --git a/devicemodel/include/console.h b/devicemodel/include/console.h index c1df3d38d..36881d288 100644 --- a/devicemodel/include/console.h +++ b/devicemodel/include/console.h @@ -39,7 +39,6 @@ struct gfx_ctx_image *console_get_image(void); void console_kbd_register(kbd_event_func_t event_cb, void *arg, int pri); void console_kbd_unregister(void); -void console_key_event(int down, uint32_t keysym); void console_ptr_register(ptr_event_func_t event_cb, void *arg, int pri); void console_ptr_unregister(void);