From e10f53cbaf9011e77044822080db134e1bd8a0fd Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 10 Nov 2020 01:00:30 -0800 Subject: fixes #1337 nni aio user data could be removed --- src/core/aio.c | 17 ----------------- src/core/aio.h | 4 ---- 2 files changed, 21 deletions(-) (limited to 'src/core') diff --git a/src/core/aio.c b/src/core/aio.c index 676199a5..1a8739e4 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -221,23 +221,6 @@ nni_aio_get_msg(nni_aio *aio) return (aio->a_msg); } -void -nni_aio_set_data(nni_aio *aio, unsigned index, void *data) -{ - if (index < NNI_NUM_ELEMENTS(aio->a_user_data)) { - aio->a_user_data[index] = data; - } -} - -void * -nni_aio_get_data(nni_aio *aio, unsigned index) -{ - if (index < NNI_NUM_ELEMENTS(aio->a_user_data)) { - return (aio->a_user_data[index]); - } - return (NULL); -} - void nni_aio_set_input(nni_aio *aio, unsigned index, void *data) { diff --git a/src/core/aio.h b/src/core/aio.h index 7e6a1741..a46c1feb 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -194,10 +194,6 @@ struct nng_aio { // Message operations. nni_msg *a_msg; - // User scratch data. Consumers may store values here, which - // must be preserved by providers and the framework. - void *a_user_data[2]; - // Operation inputs & outputs. Up to 4 inputs and 4 outputs may be // specified. The semantics of these will vary, and depend on the // specific operation. -- cgit v1.2.3-70-g09d2