From: Nick Mathewson Date: Tue, 10 Aug 2010 19:02:50 +0000 (-0400) Subject: Completely remove the (mostly-removed) obsolete thread functions. X-Git-Tag: release-2.0.7-rc~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3808168d21afac0846758dbd2d913f49da8a4155;p=libevent Completely remove the (mostly-removed) obsolete thread functions. --- diff --git a/evthread.c b/evthread.c index e2a95b9d..0868d941 100644 --- a/evthread.c +++ b/evthread.c @@ -74,27 +74,6 @@ evthread_set_lock_callbacks(const struct evthread_lock_callbacks *cbs) } } -static void -api_error(void) -{ - event_errx(1, "evthread_set_locking_callback and " - "evthread_set_lock_create_callbacks are obsolete; use " - "evthread_set_lock_callbacks instead."); -} - -void -evthread_set_locking_callback(void (*locking_fn)(int mode, void *lock)) -{ - api_error(); -} - -void -evthread_set_lock_create_callbacks(void *(*alloc_fn)(void), - void (*free_fn)(void *)) -{ - api_error(); -} - struct debug_lock { unsigned locktype; unsigned long held_by; diff --git a/include/event2/thread.h b/include/event2/thread.h index 1a517d81..5e299e65 100644 --- a/include/event2/thread.h +++ b/include/event2/thread.h @@ -72,20 +72,6 @@ extern "C" { #ifndef _EVENT_DISABLE_THREAD_SUPPORT -/** - @deprecated Use evthread_set_lock_callbacks instead. This API will - go away before Libevent 2.0.x-stable. -*/ -void evthread_set_lock_create_callbacks( - void *(*alloc_fn)(void), void (*free_fn)(void *)); - -/** - @deprecated Use evthread_set_lock_callbacks instead. This API will - go away before Libevent 2.0.x-stable. - */ -void evthread_set_locking_callback( - void (*locking_fn)(int mode, void *lock)); - #define EVTHREAD_LOCK_API_VERSION 1 /** A recursive lock is one that can be acquired multiple times at once by the