[vlc-commits] luarc: remove development debug
Pierre Ynard
git at videolan.org
Tue Mar 15 02:17:51 CET 2011
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Mar 15 02:17:14 2011 +0100| [2c5b243da7ed0d2ebff1d257f8f0a4a4130e186d] | committer: Pierre Ynard
luarc: remove development debug
If luarc is mature enough to replace oldrc, then I guess this is not
needed anymore
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c5b243da7ed0d2ebff1d257f8f0a4a4130e186d
---
share/lua/intf/rc.lua | 33 ---------------------------------
1 files changed, 0 insertions(+), 33 deletions(-)
diff --git a/share/lua/intf/rc.lua b/share/lua/intf/rc.lua
index 1bac517..6a34481 100644
--- a/share/lua/intf/rc.lua
+++ b/share/lua/intf/rc.lua
@@ -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)
More information about the vlc-commits
mailing list