]> git.sesse.net Git - vlc/commitdiff
lua: remove should_die (always false here)
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 24 Mar 2013 16:52:24 +0000 (18:52 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 24 Mar 2013 16:53:04 +0000 (18:53 +0200)
modules/lua/libs/misc.c
share/lua/README.txt

index 5cb941c04912596233c895bbe09c3feec923ed02..2f0d4dc429c6e4edb2d4b52bcdaf75e208f9cf82 100644 (file)
@@ -140,13 +140,6 @@ static int vlclua_mwait( lua_State *L )
     return 0;
 }
 
-static int vlclua_intf_should_die( lua_State *L )
-{
-    vlc_object_t *p_this = vlclua_get_this( L );
-    lua_pushboolean( L, !vlc_object_alive( p_this ) );
-    return 1;
-}
-
 static int vlclua_action_id( lua_State *L )
 {
     vlc_action_t i_key = vlc_GetActionId( luaL_checkstring( L, 1 ) );
@@ -169,7 +162,6 @@ static const luaL_Reg vlclua_misc_reg[] = {
     { "mdate", vlclua_mdate },
     { "mwait", vlclua_mwait },
 
-    { "should_die", vlclua_intf_should_die },
     { "quit", vlclua_quit },
 
     { NULL, NULL }
index 74512be49f02d8089380465b7dc7f4155b686260..580f87fcfb8201f2e26c0c5cd6562b052aa35269 100644 (file)
@@ -155,7 +155,6 @@ misc.action_id( name ): get the id of the given action.
 misc.mdate(): Get the current date (in microseconds).
 misc.mwait(): Wait for the given date (in microseconds).
 
-misc.should_die(): Returns true if the interface should quit.
 misc.quit(): Quit VLC.
 
 Net