Commit 6e6c2850 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

threads: remove vlc_rwlock_destroy()

parent 4bf5c6f7
Pipeline #57423 failed with stages
in 21 minutes and 57 seconds
......@@ -544,17 +544,9 @@ typedef struct vlc_rwlock
/**
* Initializes a read/write lock.
*
* After use, a read/write lock must be deinitialized with
* vlc_rwlock_destroy().
*/
VLC_API void vlc_rwlock_init(vlc_rwlock_t *);
/**
* Destroys an initialized unused read/write lock.
*/
VLC_API void vlc_rwlock_destroy(vlc_rwlock_t *);
/**
* Acquires a read/write lock for reading.
*
......
......@@ -651,7 +651,6 @@ vlc_lrand48
vlc_mrand48
vlc_qsort
vlc_restorecancel
vlc_rwlock_destroy
vlc_rwlock_init
vlc_rwlock_rdlock
vlc_rwlock_unlock
......
......@@ -332,7 +332,6 @@ static void vlc_LogSwitchClose(void *d)
logswitch->backend = &discard_log;
backend->ops->destroy(backend);
vlc_rwlock_destroy(&logswitch->lock);
free(logswitch);
}
......
......@@ -391,11 +391,6 @@ void vlc_rwlock_init (vlc_rwlock_t *lock)
lock->state = 0;
}
void vlc_rwlock_destroy (vlc_rwlock_t *lock)
{
(void) lock;
}
void vlc_rwlock_rdlock (vlc_rwlock_t *lock)
{
vlc_mutex_lock (&lock->mutex);
......
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