[vlc-commits] events: remove vlc_event_manager_register_event_type()

Rémi Denis-Courmont git at videolan.org
Mon May 15 23:35:08 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 16 00:28:46 2017 +0300| [2e4a5078c8c1d45f6c45b45c9af3a92c5b3eb4b9] | committer: Rémi Denis-Courmont

events: remove vlc_event_manager_register_event_type()

This had become a no-op.

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

 include/vlc_events.h |  8 --------
 src/input/item.c     |  9 ---------
 src/libvlccore.sym   |  1 -
 src/misc/events.c    | 11 -----------
 4 files changed, 29 deletions(-)

diff --git a/include/vlc_events.h b/include/vlc_events.h
index a0fafb6abb..e263d78e9c 100644
--- a/include/vlc_events.h
+++ b/include/vlc_events.h
@@ -70,8 +70,6 @@
  * {
  *        ...
  *        vlc_event_manager_init( &p_self->p_event_manager, p_self, p_a_libvlc_object );
- *        vlc_event_manager_register_event_type(p_self->p_event_manager,
- *                vlc_MyCoolObjectDidSomething, p_e)
  *        ...
  * }
  *
@@ -196,12 +194,6 @@ VLC_API int vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj );
 VLC_API void vlc_event_manager_fini( vlc_event_manager_t * p_em );
 
 /*
- * Tells a specific event manager that it will handle event_type object
- */
-VLC_API int vlc_event_manager_register_event_type( vlc_event_manager_t * p_em,
-                                                   vlc_event_type_t );
-
-/*
  * Send an event to the listener attached to this p_em.
  */
 VLC_API void vlc_event_send( vlc_event_manager_t * p_em, vlc_event_t * );
diff --git a/src/input/item.c b/src/input/item.c
index 743c3c6e99..7981059612 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -1099,15 +1099,6 @@ input_item_NewExt( const char *psz_uri, const char *psz_name,
     TAB_INIT( p_input->i_slaves, p_input->pp_slaves );
 
     vlc_event_manager_init( p_em, p_input );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemMetaChanged );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemSubItemAdded );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemSubItemTreeAdded );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemDurationChanged );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemPreparsedChanged );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemNameChanged );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemInfoChanged );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemErrorWhenReadingChanged );
-    vlc_event_manager_register_event_type( p_em, vlc_InputItemPreparseEnded );
 
     if( type != ITEM_TYPE_UNKNOWN )
         p_input->i_type = type;
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 0cceb63341..2df8113592 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -569,7 +569,6 @@ vlc_event_attach
 vlc_event_detach
 vlc_event_manager_fini
 vlc_event_manager_init
-vlc_event_manager_register_event_type
 vlc_event_send
 vlc_fourcc_GetCodec
 vlc_fourcc_GetCodecAudio
diff --git a/src/misc/events.c b/src/misc/events.c
index d909f4dff8..59d97669fd 100644
--- a/src/misc/events.c
+++ b/src/misc/events.c
@@ -124,17 +124,6 @@ void vlc_event_manager_fini( vlc_event_manager_t * p_em )
 }
 
 /**
- * Register the event manager
- */
-int vlc_event_manager_register_event_type(
-        vlc_event_manager_t * p_em,
-        vlc_event_type_t event_type )
-{
-    (void) p_em; (void) event_type;
-    return VLC_SUCCESS;
-}
-
-/**
  * Send an event to the listener attached to this p_em.
  */
 void vlc_event_send( vlc_event_manager_t * p_em,



More information about the vlc-commits mailing list