mirror of https://github.com/mpv-player/mpv
lua: remove unused #define mp_lua_len
This is unused since548ef07864
and7f91e2684e
.
This commit is contained in:
parent
d54e8c3f40
commit
69ced646f8
|
@ -105,7 +105,6 @@ struct script_ctx {
|
||||||
|
|
||||||
#if LUA_VERSION_NUM <= 501
|
#if LUA_VERSION_NUM <= 501
|
||||||
#define mp_cpcall lua_cpcall
|
#define mp_cpcall lua_cpcall
|
||||||
#define mp_lua_len lua_objlen
|
|
||||||
#else
|
#else
|
||||||
// Curse whoever had this stupid idea. Curse whoever thought it would be a good
|
// Curse whoever had this stupid idea. Curse whoever thought it would be a good
|
||||||
// idea not to include an emulated lua_cpcall() even more.
|
// 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);
|
lua_pushlightuserdata(L, ud);
|
||||||
return lua_pcall(L, 1, 0, 0);
|
return lua_pcall(L, 1, 0, 0);
|
||||||
}
|
}
|
||||||
#define mp_lua_len lua_rawlen
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Ensure that the given argument exists, even if it's nil. Can be used to
|
// Ensure that the given argument exists, even if it's nil. Can be used to
|
||||||
|
|
Loading…
Reference in New Issue