[vlc-commits] lua: dead code
Rémi Denis-Courmont
git at videolan.org
Mon Mar 24 18:56:25 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 24 19:56:09 2014 +0200| [13cb1f0e203a0dd06c2da6e948296393d9d9c6c3] | committer: Rémi Denis-Courmont
lua: dead code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=13cb1f0e203a0dd06c2da6e948296393d9d9c6c3
---
modules/lua/libs.h | 1 -
modules/lua/libs/net.c | 14 --------------
2 files changed, 15 deletions(-)
diff --git a/modules/lua/libs.h b/modules/lua/libs.h
index ffac4dc..861cba9 100644
--- a/modules/lua/libs.h
+++ b/modules/lua/libs.h
@@ -30,7 +30,6 @@ void luaopen_httpd( lua_State * );
void luaopen_input( lua_State * );
void luaopen_msg( lua_State * );
void luaopen_misc( lua_State * );
-void luaopen_net_generic( lua_State * );
void luaopen_object( lua_State * );
void luaopen_osd( lua_State * );
void luaopen_playlist( lua_State * );
diff --git a/modules/lua/libs/net.c b/modules/lua/libs/net.c
index fe2e37f..e2bd89a 100644
--- a/modules/lua/libs/net.c
+++ b/modules/lua/libs/net.c
@@ -544,17 +544,3 @@ void vlclua_fd_cleanup( vlclua_dtable_t *dt )
close( dt->fd[0] );
#endif
}
-
-static const luaL_Reg vlclua_net_generic_reg[] = {
- { "url_parse", vlclua_url_parse },
- { "stat", vlclua_stat }, /* Not really "net" */
- { "opendir", vlclua_opendir }, /* Not really "net" */
- { NULL, NULL }
-};
-
-void luaopen_net_generic( lua_State *L )
-{
- lua_newtable( L );
- luaL_register( L, NULL, vlclua_net_generic_reg );
- lua_setfield( L, -2, "net" );
-}
More information about the vlc-commits
mailing list