[vlc-commits] lib: event: remove new/release functions
Rémi Denis-Courmont
git at videolan.org
Mon May 15 21:32:58 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 15 21:29:47 2017 +0300| [b50d5f313152731a18b51be2aab13c3ba0d0d12c] | committer: Rémi Denis-Courmont
lib: event: remove new/release functions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b50d5f313152731a18b51be2aab13c3ba0d0d12c
---
lib/event.c | 29 -----------------------------
lib/libvlc_internal.h | 5 -----
2 files changed, 34 deletions(-)
diff --git a/lib/event.c b/lib/event.c
index f0aef9d2c3..0bd5510a62 100644
--- a/lib/event.c
+++ b/lib/event.c
@@ -100,35 +100,6 @@ void libvlc_event_manager_destroy(libvlc_event_manager_t *em)
}
/**************************************************************************
- * libvlc_event_manager_new (internal) :
- *
- * Init an object's event manager.
- **************************************************************************/
-libvlc_event_manager_t *
-libvlc_event_manager_new( void * p_obj )
-{
- libvlc_event_manager_t * p_em;
-
- p_em = malloc(sizeof( libvlc_event_manager_t ));
- if( !p_em )
- libvlc_printerr( "Not enough memory" );
- else
- libvlc_event_manager_init( p_em, p_obj );
- return p_em;
-}
-
-/**************************************************************************
- * libvlc_event_manager_release (internal) :
- *
- * Release an object's event manager.
- **************************************************************************/
-void libvlc_event_manager_release( libvlc_event_manager_t * p_em )
-{
- libvlc_event_manager_destroy( p_em );
- free( p_em );
-}
-
-/**************************************************************************
* libvlc_event_send (internal) :
*
* Send a callback.
diff --git a/lib/libvlc_internal.h b/lib/libvlc_internal.h
index 1869341996..d1cc28486c 100644
--- a/lib/libvlc_internal.h
+++ b/lib/libvlc_internal.h
@@ -95,11 +95,6 @@ void libvlc_threads_deinit (void);
void libvlc_event_manager_init(libvlc_event_manager_t *, void *);
void libvlc_event_manager_destroy(libvlc_event_manager_t *);
-libvlc_event_manager_t * libvlc_event_manager_new(void * p_obj);
-
-void libvlc_event_manager_release(
- libvlc_event_manager_t * p_em );
-
void libvlc_event_send(
libvlc_event_manager_t * p_em,
libvlc_event_t * p_event );
More information about the vlc-commits
mailing list