From 69ced646f85388c630c0fded7c3363177a94788f Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Thu, 26 Sep 2024 09:57:08 +0200 Subject: [PATCH] lua: remove unused #define mp_lua_len This is unused since 548ef07864 and 7f91e2684e. --- player/lua.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/player/lua.c b/player/lua.c index 904d48b2a7..9ccd1f4d44 100644 --- a/player/lua.c +++ b/player/lua.c @@ -105,7 +105,6 @@ struct script_ctx { #if LUA_VERSION_NUM <= 501 #define mp_cpcall lua_cpcall -#define mp_lua_len lua_objlen #else // Curse whoever had this stupid idea. Curse whoever thought it would be a good // idea not to include an emulated lua_cpcall() even more. @@ -115,7 +114,6 @@ static int mp_cpcall (lua_State *L, lua_CFunction func, void *ud) lua_pushlightuserdata(L, ud); return lua_pcall(L, 1, 0, 0); } -#define mp_lua_len lua_rawlen #endif // Ensure that the given argument exists, even if it's nil. Can be used to