From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1A6772EA8A for ; Tue, 14 May 2019 19:06:33 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IuN9nd2juxzM for ; Tue, 14 May 2019 19:06:32 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 947352EA7C for ; Tue, 14 May 2019 19:06:32 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH 7/7] Drop an unused function and class Date: Wed, 15 May 2019 02:06:25 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org --- 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 - -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)