From: Mukund Sivaraman Date: Thu, 26 Feb 2015 09:17:03 +0000 (+0530) Subject: Remove unused functions (#38547) X-Git-Tag: v9.11.0a1~972 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ebeb668f86860e658d625789625f3fee57cd8528;p=thirdparty%2Fbind9.git Remove unused functions (#38547) --- diff --git a/lib/isc/pthreads/mutex.c b/lib/isc/pthreads/mutex.c index 71e843c1595..2a502a5f513 100644 --- a/lib/isc/pthreads/mutex.c +++ b/lib/isc/pthreads/mutex.c @@ -231,13 +231,6 @@ static isc_boolean_t errcheck_initialized = ISC_FALSE; static pthread_mutexattr_t errcheck; static isc_once_t once_errcheck = ISC_ONCE_INIT; -static void -destroy_errcheck(void) { - if (errcheck_initialized) { - RUNTIME_CHECK(pthread_mutexattr_destroy(&errcheck) == 0); - } -} - static void initialize_errcheck(void) { RUNTIME_CHECK(pthread_mutexattr_init(&errcheck) == 0); @@ -274,13 +267,6 @@ static isc_boolean_t attr_initialized = ISC_FALSE; static pthread_mutexattr_t attr; static isc_once_t once_attr = ISC_ONCE_INIT; -static void -destroy_attr(void) { - if (attr_initialized) { - RUNTIME_CHECK(pthread_mutexattr_destroy(&attr) == 0); - } -} - #ifdef HAVE_PTHREAD_MUTEX_ADAPTIVE_NP static void initialize_attr(void) {