Commit 119aca12 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

picture_pool: remove picture_pool_Enum()

parent e678bf4a
......@@ -131,20 +131,6 @@ VLC_API picture_t * picture_pool_Get( picture_pool_t * ) VLC_USED;
*/
VLC_API picture_t *picture_pool_Wait(picture_pool_t *) VLC_USED;
/**
* Enumerates all pictures in a pool, both free and allocated.
*
* @param cb callback to invoke once for each picture
* @param data opaque data parameter for the callback (first argument)
*
* @note Allocated pictures may be accessed asynchronously by other threads.
* Therefore, only read-only picture parameters can be read by the callback,
* typically picture_t.p_sys.
* Provided those rules are respected, the function is thread-safe.
*/
VLC_API void picture_pool_Enum( picture_pool_t *,
void (*cb)(void *, picture_t *), void *data );
/**
* Cancel the picture pool.
*
......
......@@ -315,7 +315,6 @@ picture_NewFromResource
picture_pool_Release
picture_pool_Get
picture_pool_GetSize
picture_pool_Enum
picture_pool_New
picture_pool_NewExtended
picture_pool_NewFromFormat
......
......@@ -305,12 +305,3 @@ unsigned picture_pool_GetSize(const picture_pool_t *pool)
{
return pool->picture_count;
}
void picture_pool_Enum(picture_pool_t *pool, void (*cb)(void *, picture_t *),
void *opaque)
{
/* NOTE: So far, the pictures table cannot change after the pool is created
* so there is no need to lock the pool mutex here. */
for (unsigned i = 0; i < pool->picture_count; i++)
cb(opaque, pool->picture[i]);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment