From 84990c6ecb35ef322b74b8cc9e74ad5964b66ee5 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 29 Mar 2017 13:20:42 -0700 Subject: Clean up some dead code. --- src/platform/posix/posix_aiothr.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/platform') diff --git a/src/platform/posix/posix_aiothr.c b/src/platform/posix/posix_aiothr.c index 2d31aede..2c11dcb2 100644 --- a/src/platform/posix/posix_aiothr.c +++ b/src/platform/posix/posix_aiothr.c @@ -178,7 +178,6 @@ nni_plat_aiothr_dothr(nni_posix_aioq *q, int (*fn)(int, nni_aio *)) } nni_list_remove(&q->aq_aios, aio); - //nni_mtx_unlock(&q->aq_lk); // Call the callback. nni_aio_finish(aio, rv, aio->a_count); @@ -186,9 +185,7 @@ nni_plat_aiothr_dothr(nni_posix_aioq *q, int (*fn)(int, nni_aio *)) while ((aio = nni_list_first(&q->aq_aios)) != NULL) { nni_list_remove(&q->aq_aios, aio); - //nni_mtx_unlock(&q->aq_lk); nni_aio_finish(aio, NNG_ECLOSED, aio->a_count); - //nni_mtx_lock(&q->aq_lk); } nni_mtx_unlock(&q->aq_lk); -- cgit v1.2.3-70-g09d2