]> git.sesse.net Git - vlc/commitdiff
Lua RC: remove non-working menu command
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 31 Jan 2013 16:54:05 +0000 (18:54 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 31 Jan 2013 17:11:40 +0000 (19:11 +0200)
share/lua/intf/cli.lua

index 765928387a7bfd5a8f03959804603776d85bd37a..558952d115ab8b7edd7c5eb945187a62a0c00ef9 100644 (file)
@@ -506,15 +506,6 @@ function listvalue(obj,var)
     end
 end
 
-function menu(name,client,value)
-    local map = { on='show', off='hide', up='up', down='down', left='prev', right='next', ['select']='activate' }
-    if map[value] and vlc.osd.menu[map[value]] then
-        vlc.osd.menu[map[value]]()
-    else
-        client:append("Unknown menu command '"..tostring(value).."'")
-    end
-end
-
 function hotkey(name, client, value)
     if not value then
         client:append("Please specify a hotkey (ie key-quit or quit)")
@@ -584,7 +575,6 @@ commands_ordered = {
     { "snapshot"; { func = common.snapshot; help = "take video snapshot" } };
     { "strack"; { func = skip(listvalue("input","spu-es")); args = "[X]"; help = "set/get subtitles track" } };
     { "hotkey"; { func = hotkey; args = "[hotkey name]"; help = "simulate hotkey press"; adv = true; aliases = { "key" } } };
-    { "menu"; { func = menu; args = "[on|off|up|down|left|right|select]"; help = "use menu"; adv = true } };
     { "" };
     { "vlm"; { func = load_vlm; help = "load the VLM" } };
     { "set"; { func = set_env; args = "[var [value]]"; help = "set/get env var"; adv = true } };