mirror of https://code.videolan.org/videolan/vlc
vlc_arrays: remove vlc_array_{new, destroy}
These functions are no longer necessary nor used; future implementations shall use vlc_array_init and vlc_array_clear respectively). Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
This commit is contained in:
parent
f063bb3070
commit
209ee554c4
|
@ -296,22 +296,6 @@ static inline void vlc_array_clear( vlc_array_t * p_array )
|
|||
vlc_array_init( p_array );
|
||||
}
|
||||
|
||||
static inline vlc_array_t * vlc_array_new( void )
|
||||
{
|
||||
vlc_array_t * ret = (vlc_array_t *)malloc( sizeof(vlc_array_t) );
|
||||
if( ret ) vlc_array_init( ret );
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline void vlc_array_destroy( vlc_array_t * p_array )
|
||||
{
|
||||
if( !p_array )
|
||||
return;
|
||||
free( p_array->pp_elems );
|
||||
free( p_array );
|
||||
}
|
||||
|
||||
|
||||
/* Read */
|
||||
static inline size_t vlc_array_count( vlc_array_t * p_array )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue