[tarantool-patches] [PATCH 7/7] Drop an unused function and class

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Wed May 15 02:06:25 MSK 2019


---
 src/lua/utils.h | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/src/lua/utils.h b/src/lua/utils.h
index 3d887a5ce..943840ec0 100644
--- a/src/lua/utils.h
+++ b/src/lua/utils.h
@@ -597,31 +597,6 @@ tarantool_lua_utils_init(struct lua_State *L);
 
 #if defined(__cplusplus)
 } /* extern "C" */
-
-#include "exception.h"
-#include <fiber.h>
-
-static inline void
-luaT_call_xc(lua_State *L, int nargs, int nreturns)
-{
-	if (luaT_call(L, nargs, nreturns) != 0)
-		diag_raise();
-}
-
-/**
- * Make a reference to an object on top of the Lua stack and
- * release it at the end of the scope.
- */
-struct LuarefGuard
-{
-	int ref;
-	bool is_active;
-
-	explicit LuarefGuard(int ref_arg) { ref = ref_arg; is_active = true; }
-	explicit LuarefGuard(struct lua_State *L) { ref = luaL_ref(L, LUA_REGISTRYINDEX); is_active = true; }
-	~LuarefGuard() { if (is_active) luaL_unref(tarantool_L, LUA_REGISTRYINDEX, ref); }
-};
-
 #endif /* defined(__cplusplus) */
 
 #endif /* TARANTOOL_LUA_UTILS_H_INCLUDED */
-- 
2.20.1 (Apple Git-117)





More information about the Tarantool-patches mailing list