]> git.sesse.net Git - vlc/commitdiff
luarc: remove development debug
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 15 Mar 2011 01:17:14 +0000 (02:17 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 15 Mar 2011 01:17:14 +0000 (02:17 +0100)
If luarc is mature enough to replace oldrc, then I guess this is not
needed anymore

share/lua/intf/rc.lua

index 1bac517a5487b9aac5e99ef68f09ca91221db592..6a34481266abdb6bdee60a4b535ae20f811ec5c9 100644 (file)
@@ -40,8 +40,6 @@ description=
  Configuration options setable throught the --lua-config option are:
     * hosts: A list of hosts to listen on.
     * host: A host to listen on. (won't be used if `hosts' is set)
-    * eval: Add eval command to evaluate lua expressions. Set to any value to
-            enable.
  The following can be set using the --lua-config option or in the interface
  itself using the `set' command:
     * prompt: The prompt.
@@ -131,10 +129,6 @@ function alias(client,value)
     end
 end
 
-function fixme(name,client)
-    client:append( "FIXME: unimplemented command `"..name.."'." )
-end
-
 function logout(name,client)
     if client.type == host.client_type.net then
         client:send("Bye-bye!\r\n")
@@ -489,10 +483,6 @@ function hotkey(name, client, value)
     end
 end
 
-function eval(client,val)
-    client:append(tostring(loadstring("return "..val)()))
-end
-
 --[[ Declare commands, register their callback functions and provide
      help strings here.
      Syntax is:
@@ -566,10 +556,6 @@ commands_ordered = {
     { "shutdown"; { func = shutdown; help = "shutdown VLC" } };
     }
 
-if config.eval then
-    commands_ordered[#commands_ordered] = { "eval"; { func = skip(eval); help = "eval some lua (*debug*)"; adv =true } }
-end
-
 commands = {}
 for i, cmd in ipairs( commands_ordered ) do
     if #cmd == 2 then
@@ -592,25 +578,6 @@ for c,_ in pairs(commands) do
 end
 env.coldwidth = env.colwidth + 1
 
--- Count unimplemented functions
-do
-    local count = 0
-    local list = "("
-    for c,v in pairs(commands) do
-        if v.func == fixme then
-            count = count + 1
-            if count ~= 1 then
-                list = list..","
-            end
-            list = list..c
-        end
-    end
-    list = list..")"
-    if count ~= 0 and env.welcome and env.welcome ~= "" then
-        env.welcome = env.welcome .. "\r\nWarning: "..count.." functions are still unimplemented "..list.."."
-    end
-end
-
 --[[ Utils ]]
 function split_input(input)
     local input = strip(input)