mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-20 02:30:13 +00:00
CLEANUP: Remove unused function hlua_get_top_error_string
This function has no prototype defined in a header and is not used in hlua.c either, thus it can be safely removed. Found with -Wmissing-prototypes.
This commit is contained in:
parent
6eded62f6a
commit
9b6becb312
10
src/hlua.c
10
src/hlua.c
@ -498,16 +498,6 @@ __LJMP unsigned int hlua_checktable(lua_State *L, int argno)
|
||||
return luaL_ref(L, LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
/* Return the string that is of the top of the stack. */
|
||||
const char *hlua_get_top_error_string(lua_State *L)
|
||||
{
|
||||
if (lua_gettop(L) < 1)
|
||||
return "unknown error";
|
||||
if (lua_type(L, -1) != LUA_TSTRING)
|
||||
return "unknown error";
|
||||
return lua_tostring(L, -1);
|
||||
}
|
||||
|
||||
__LJMP const char *hlua_traceback(lua_State *L, const char* sep)
|
||||
{
|
||||
lua_Debug ar;
|
||||
|
Loading…
Reference in New Issue
Block a user