From 35f94dcaf39af096d2cda0ba66094eec02a7dabe Mon Sep 17 00:00:00 2001 From: batrick Date: Wed, 15 Jul 2009 08:53:19 +0000 Subject: [PATCH] Removed two functions no longer being used. --- nse_main.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/nse_main.cc b/nse_main.cc index 26be4393f..55aa26ba0 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -174,19 +174,6 @@ static int key_was_pressed (lua_State *L) return 1; } -static int ref (lua_State *L) -{ - lua_settop(L, 1); - lua_pushinteger(L, (lua_Integer) luaL_ref(L, LUA_REGISTRYINDEX)); - return 1; -} - -static int unref (lua_State *L) -{ - luaL_unref(L, LUA_REGISTRYINDEX, luaL_checkint(L, 1)); - return 0; -} - static int updatedb (lua_State *L) { lua_pushboolean(L, script_updatedb()); @@ -232,8 +219,6 @@ static void open_cnse (lua_State *L) {"dump_dir", dump_dir}, {"nsock_loop", nsock_loop}, {"key_was_pressed", key_was_pressed}, - {"ref", ref}, - {"unref", unref}, {"updatedb", updatedb}, {"scan_progress_meter", scan_progress_meter}, {"timedOut", timedOut},