summaryrefslogtreecommitdiff
path: root/src/bin/elua/main.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-11 11:16:55 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-11 11:16:55 +0100
commit808aa0ce50bb4662e85cbe22812fb59213b30c5c (patch)
tree4526b6244dc09e661d1e89a37295349677a6a3a9 /src/bin/elua/main.c
parent0f4e617e9f780e862c44bbd790f2c025c9860b9c (diff)
elua: remove build_args, it's useless by now with our popen variant
Diffstat (limited to 'src/bin/elua/main.c')
-rw-r--r--src/bin/elua/main.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/bin/elua/main.c b/src/bin/elua/main.c
index 7935fbf9ec..8a5d957409 100644
--- a/src/bin/elua/main.c
+++ b/src/bin/elua/main.c
@@ -299,25 +299,6 @@ register_callbacks(lua_State *L)
299 return 1; 299 return 1;
300} 300}
301 301
302static int
303elua_build_args(lua_State *L)
304{
305 /* todo: will probably need adjustments for Windows */
306 int nargs = lua_gettop(L), n = 0, i;
307 for (i = 1; i <= nargs; ++i)
308 {
309 lua_pushliteral(L, "'"); ++n;
310 lua_pushvalue(L, i); ++n;
311 lua_pushliteral(L, "'"); ++n;
312 if (i != nargs)
313 {
314 lua_pushliteral(L, " "); ++n;
315 }
316 }
317 lua_concat(L, n);
318 return 1;
319}
320
321struct Main_Data 302struct Main_Data
322{ 303{
323 int argc; 304 int argc;
@@ -331,7 +312,6 @@ const luaL_reg cutillib[] =
331{ 312{
332 { "init_module" , init_module }, 313 { "init_module" , init_module },
333 { "register_callbacks", register_callbacks }, 314 { "register_callbacks", register_callbacks },
334 { "build_args" , elua_build_args },
335 { "popenv" , elua_popen }, 315 { "popenv" , elua_popen },
336 { NULL , NULL } 316 { NULL , NULL }
337}; 317};