[vlc-devel] [PATCH 2/8] renderer: remove unused fonctions

Thomas Guillem thomas at gllm.fr
Mon Sep 19 19:09:45 CEST 2016


---
 include/vlc_renderer_discovery.h | 12 ------------
 src/libvlccore.sym               |  2 --
 src/misc/renderer_discovery.c    | 17 -----------------
 3 files changed, 31 deletions(-)

diff --git a/include/vlc_renderer_discovery.h b/include/vlc_renderer_discovery.h
index d7060f5..585dcf2 100644
--- a/include/vlc_renderer_discovery.h
+++ b/include/vlc_renderer_discovery.h
@@ -93,18 +93,6 @@ VLC_API int
 vlc_renderer_item_flags(const vlc_renderer_item_t *p_item);
 
 /**
- * Set an opaque context
- */
-VLC_API void
-vlc_renderer_item_set_ctx(vlc_renderer_item_t *p_item, void *p_ctx);
-
-/**
- * Get the opaque context previously set
- */
-VLC_API void*
-vlc_renderer_item_ctx(const vlc_renderer_item_t *p_item);
-
-/**
  * @}
  * @defgroup vlc_renderer_discovery VLC renderer discovery interface
  * @{
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 5a7de9e..e3fd6e5 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -767,8 +767,6 @@ vlc_renderer_item_name
 vlc_renderer_item_sout
 vlc_renderer_item_icon_uri
 vlc_renderer_item_flags
-vlc_renderer_item_set_ctx
-vlc_renderer_item_ctx
 vlc_rd_get_names
 vlc_rd_new
 vlc_rd_event_manager
diff --git a/src/misc/renderer_discovery.c b/src/misc/renderer_discovery.c
index ae28f5e..7b43177 100644
--- a/src/misc/renderer_discovery.c
+++ b/src/misc/renderer_discovery.c
@@ -37,7 +37,6 @@ struct vlc_renderer_item_t
     char *psz_name;
     char *psz_sout;
     char *psz_icon_uri;
-    void *p_ctx;
     int i_flags;
     atomic_uint refs;
 };
@@ -125,22 +124,6 @@ vlc_renderer_item_flags(const vlc_renderer_item_t *p_item)
     return p_item->i_flags;
 }
 
-void
-vlc_renderer_item_set_ctx(vlc_renderer_item_t *p_item, void *p_ctx)
-{
-    assert(p_item != NULL);
-
-    p_item->p_ctx = p_ctx;
-}
-
-void*
-vlc_renderer_item_ctx(const vlc_renderer_item_t *p_item)
-{
-    assert(p_item != NULL);
-
-    return p_item->p_ctx;
-}
-
 vlc_renderer_item_t *
 vlc_renderer_item_hold(vlc_renderer_item_t *p_item)
 {
-- 
2.9.3



More information about the vlc-devel mailing list