[vlc-devel] [PATCH] lua/libs: variables: remove luaL_checklightuserdata (unused)

Filip Roséen filip at atch.se
Fri Mar 17 03:35:57 CET 2017


The last usage of this function was removed by fe5df3d in March 2012.

--

 - http://git.videolan.org/?p=vlc.git;a=commit;h=fe5df3d5b1bbe4918e0997c1f9875b2f1eab281a
---
 modules/lua/libs/variables.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/lua/libs/variables.c b/modules/lua/libs/variables.c
index 0e27673948..300e1811f4 100644
--- a/modules/lua/libs/variables.c
+++ b/modules/lua/libs/variables.c
@@ -307,12 +307,6 @@ end:
     return 1;
 }
 
-static inline const void *luaL_checklightuserdata( lua_State *L, int narg )
-{
-    luaL_checktype( L, narg, LUA_TLIGHTUSERDATA ); /* can raise an error */
-    return lua_topointer( L, narg );
-}
-
 static int vlclua_trigger_callback( lua_State *L )
 {
     vlc_object_t **pp_obj = luaL_checkudata( L, 1, "vlc_object" );
-- 
2.12.0


More information about the vlc-devel mailing list