diff options
| author | OpportunityLiu <[email protected]> | 2019-07-02 11:59:11 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-02 11:59:11 +0800 |
| commit | b94789d65449527a17187cf00fc2ed887f40df58 (patch) | |
| tree | abff79951084489923ee4e9196bd95c802803b3b /core/src/xmake/machine.c | |
| parent | 25533776832f2624622917e2ac1a96c243e67b6c (diff) | |
remove unused code
Diffstat (limited to 'core/src/xmake/machine.c')
| -rw-r--r-- | core/src/xmake/machine.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index f09f941e1..098966f24 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -167,12 +167,6 @@ tb_int_t xm_curses_register(lua_State* lua); * globals */ -// the global functions -static luaL_Reg const g_functions[] = -{ - { tb_null, tb_null } -}; - // the os functions static luaL_Reg const g_os_functions[] = { @@ -639,12 +633,6 @@ xm_machine_ref_t xm_machine_init() lua_setglobal(machine->lua, "curses"); #endif - // bind global functions - for (tb_size_t i = 0; g_functions[i].name != tb_null && g_functions[i].func != tb_null; i++) - { - lua_register(machine->lua, g_functions[i].name, g_functions[i].func); - } - // init host #if defined(TB_CONFIG_OS_WINDOWS) lua_pushstring(machine->lua, "windows"); |
