[vlc-devel] [PATCH] lua/intf: remove luaL_register_submodule (unused)

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


Last usage was removed in June 2008 as part of the changed instroduced
by 95addd57388b78fdfb6a58c90437085de8bbbc33.

--

 - http://git.videolan.org/?p=vlc.git;a=commit;h=95addd57388b78fdfb6a58c90437085de8bbbc33
---
 modules/lua/intf.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/lua/intf.c b/modules/lua/intf.c
index 46738dca76..a9f27e563a 100644
--- a/modules/lua/intf.c
+++ b/modules/lua/intf.c
@@ -59,13 +59,6 @@ struct intf_sys_t
 /*****************************************************************************
  *
  *****************************************************************************/
-static inline void luaL_register_submodule( lua_State *L, const char *psz_name,
-                                            const luaL_Reg *l )
-{
-    lua_newtable( L );
-    luaL_register( L, NULL, l );
-    lua_setfield( L, -2, psz_name );
-}
 
 static char *MakeConfig( intf_thread_t *p_intf, const char *name )
 {
-- 
2.12.0


More information about the vlc-devel mailing list