[vlc-commits] display: remove dead key event code

Rémi Denis-Courmont git at videolan.org
Sun May 20 19:52:11 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 18 21:42:38 2018 +0300| [0b4d868df0be7c0cda47138c03f247f6c50ef2ec] | committer: Rémi Denis-Courmont

display: remove dead key event code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b4d868df0be7c0cda47138c03f247f6c50ef2ec
---

 include/vlc_vout_display.h | 1 -
 src/video_output/display.c | 7 -------
 2 files changed, 8 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 813e9bed5d..b46f3f8af5 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -178,7 +178,6 @@ enum {
 
     /* */
     VOUT_DISPLAY_EVENT_CLOSE,
-    VOUT_DISPLAY_EVENT_KEY,
 
     /* Mouse event */
     VOUT_DISPLAY_EVENT_MOUSE_MOVED,
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 70cacf0c5e..d467773024 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -549,12 +549,6 @@ static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)
         vout_SendEventClose(osys->vout);
         break;
     }
-    case VOUT_DISPLAY_EVENT_KEY: {
-        const int key = (int)va_arg(args, int);
-        msg_Dbg(vd, "VoutDisplayEvent 'key' 0x%2.2x", key);
-        vout_SendEventKey(osys->vout, key);
-        break;
-    }
     case VOUT_DISPLAY_EVENT_MOUSE_MOVED:
     case VOUT_DISPLAY_EVENT_MOUSE_PRESSED:
     case VOUT_DISPLAY_EVENT_MOUSE_RELEASED:
@@ -1156,7 +1150,6 @@ static void SplitterEvent(vout_display_t *vd, int event, va_list args)
         break;
 #endif
     case VOUT_DISPLAY_EVENT_MOUSE_DOUBLE_CLICK:
-    case VOUT_DISPLAY_EVENT_KEY:
     case VOUT_DISPLAY_EVENT_CLOSE:
     case VOUT_DISPLAY_EVENT_PICTURES_INVALID:
         VoutDisplayEvent(vd, event, args);



More information about the vlc-commits mailing list