From d8f77cca6456cbd5f0e34460aa9d379c0ac06740 Mon Sep 17 00:00:00 2001 From: Stephan Gatzka Date: Sun, 21 Dec 2014 07:45:36 +0100 Subject: [PATCH] Remove unused function luaL_typerror(). --- src/luasocket.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/luasocket.c b/src/luasocket.c index e6ee747..bce63a7 100644 --- a/src/luasocket.c +++ b/src/luasocket.c @@ -78,14 +78,6 @@ static int global_unload(lua_State *L) { return 0; } -#if LUA_VERSION_NUM > 501 -int luaL_typerror (lua_State *L, int narg, const char *tname) { - const char *msg = lua_pushfstring(L, "%s expected, got %s", - tname, luaL_typename(L, narg)); - return luaL_argerror(L, narg, msg); -} -#endif - /*-------------------------------------------------------------------------*\ * Setup basic stuff. \*-------------------------------------------------------------------------*/