[vlc-commits] lua: remove sd.is_loaded

Rémi Denis-Courmont git at videolan.org
Sun Mar 3 18:37:03 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  3 19:34:29 2019 +0200| [c2abea1ff5d86940ed85faf6415b395944d6ec08] | committer: Rémi Denis-Courmont

lua: remove sd.is_loaded

This has been deprecated for over 7 years, and broken for yet longer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2abea1ff5d86940ed85faf6415b395944d6ec08
---

 modules/lua/libs/sd.c | 9 ---------
 share/lua/README.txt  | 1 -
 2 files changed, 10 deletions(-)

diff --git a/modules/lua/libs/sd.c b/modules/lua/libs/sd.c
index a9bba01562..a35091154d 100644
--- a/modules/lua/libs/sd.c
+++ b/modules/lua/libs/sd.c
@@ -442,19 +442,10 @@ static int vlclua_sd_remove( lua_State *L )
     return vlclua_push_ret( L, i_ret );
 }
 
-static int vlclua_sd_is_loaded( lua_State *L )
-{
-    const char *psz_sd = luaL_checkstring( L, 1 );
-    playlist_t *p_playlist = vlclua_get_playlist_internal( L );
-    lua_pushboolean( L, playlist_IsServicesDiscoveryLoaded( p_playlist, psz_sd ));
-    return 1;
-}
-
 static const luaL_Reg vlclua_sd_intf_reg[] = {
     { "get_services_names", vlclua_sd_get_services_names },
     { "add", vlclua_sd_add },
     { "remove", vlclua_sd_remove },
-    { "is_loaded", vlclua_sd_is_loaded },
     { NULL, NULL }
 };
 
diff --git a/share/lua/README.txt b/share/lua/README.txt
index 9ddc8ecacd..579e203c16 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -341,7 +341,6 @@ sd.get_services_names(): Get a table of all available service discovery
   modules. The module name is used as key, the long name is used as value.
 sd.add( name ): Add service discovery.
 sd.remove( name ): Remove service discovery.
-sd.is_loaded( name ): Check if service discovery is loaded.
 
 Services discovery scripts can use the following SD functions:
 



More information about the vlc-commits mailing list