Commit 1423d5ed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

vout: remove dummy dead VOUT_DISPLAY_HIDE_MOUSE controls

Depending on the value of info.has_hide_mouse, the control is never
called. No point in providing a dummy implementation then.
parent 2341a17f
......@@ -442,9 +442,6 @@ static int Control(vout_display_t *vd, int query, va_list args)
VLC_UNUSED(args);
switch (query) {
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_SUCCESS;
default:
msg_Err(vd, "Unknown request in omxil vout display");
......
......@@ -612,10 +612,6 @@ static int vd_control(vout_display_t *vd, int query, va_list args)
int ret = VLC_EGENERIC;
switch (query) {
case VOUT_DISPLAY_HIDE_MOUSE:
ret = VLC_SUCCESS;
break;
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
tmp_cfg = va_arg(args, const vout_display_cfg_t *);
if (tmp_cfg->display.width == sys->display_width &&
......
......@@ -333,8 +333,6 @@ static int Control(vout_display_t *vd, int query, va_list ap)
switch (query)
{
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_EGENERIC;
case VOUT_DISPLAY_RESET_PICTURES:
{
msg_Dbg(vd, "resetting pictures");
......
......@@ -1177,8 +1177,6 @@ static int Control(vout_display_t *vd, int query, va_list args)
vout_display_sys_t *sys = vd->sys;
switch (query) {
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_SUCCESS;
case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT:
{
......
......@@ -364,7 +364,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
case VOUT_DISPLAY_HIDE_MOUSE:
case VOUT_DISPLAY_HIDE_MOUSE: /* FIXME: dead code */
{
[NSCursor setHiddenUntilMouseMoves: YES];
return VLC_SUCCESS;
......
......@@ -782,7 +782,6 @@ Control( vout_display_t *vd, int i_query, va_list ap )
case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_EGENERIC;
default:
msg_Warn( vd, "Unknown request in evas_output" );
......
......@@ -239,10 +239,6 @@ static int Control(vout_display_t *vd, int query, va_list args)
case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT:
return VLC_EGENERIC;
case VOUT_DISPLAY_HIDE_MOUSE:
/* not really working */
return VLC_SUCCESS;
default:
msg_Err(vd, "Unsupported query in vout display flaschen");
return VLC_EGENERIC;
......
......@@ -283,9 +283,6 @@ static int Control(vout_display_t *vd, int query, va_list ap)
vout_display_sys_t *sys = vd->sys;
switch (query) {
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_EGENERIC;
case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
case VOUT_DISPLAY_CHANGE_ZOOM:
case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT:
......
......@@ -411,7 +411,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
case VOUT_DISPLAY_HIDE_MOUSE:
case VOUT_DISPLAY_HIDE_MOUSE: /* FIXME: dead code */
{
[NSCursor setHiddenUntilMouseMoves: YES];
return VLC_SUCCESS;
......
......@@ -204,8 +204,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
switch (query)
{
case VOUT_DISPLAY_HIDE_MOUSE: /* FIXME TODO */
break;
#ifndef NDEBUG
case VOUT_DISPLAY_RESET_PICTURES: // not needed
vlc_assert_unreachable();
......
......@@ -259,10 +259,6 @@ static int Control(vout_display_t *vd, int query, va_list ap)
switch (query)
{
case VOUT_DISPLAY_HIDE_MOUSE:
/* TODO */
return VLC_EGENERIC;
case VOUT_DISPLAY_RESET_PICTURES:
{
vout_display_place_t place;
......
......@@ -504,9 +504,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_EGENERIC;
default:
msg_Err (vd, "Unknown request in XCB vout display");
return VLC_EGENERIC;
......
......@@ -750,8 +750,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
case VOUT_DISPLAY_HIDE_MOUSE:
return VLC_EGENERIC;
case VOUT_DISPLAY_RESET_PICTURES:
vlc_assert_unreachable();
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment