aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-11-10 01:00:30 -0800
committerGarrett D'Amore <garrett@damore.org>2020-11-10 01:00:30 -0800
commite10f53cbaf9011e77044822080db134e1bd8a0fd (patch)
treeb27ffa0f4c4b6686002429c7766eb260b16409b7 /src/core
parent34b363ce101ddc03c74fb1f002e587d2315420c3 (diff)
downloadnng-e10f53cbaf9011e77044822080db134e1bd8a0fd.tar.gz
nng-e10f53cbaf9011e77044822080db134e1bd8a0fd.tar.bz2
nng-e10f53cbaf9011e77044822080db134e1bd8a0fd.zip
fixes #1337 nni aio user data could be removed
Diffstat (limited to 'src/core')
-rw-r--r--src/core/aio.c17
-rw-r--r--src/core/aio.h4
2 files changed, 0 insertions, 21 deletions
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
@@ -222,23 +222,6 @@ nni_aio_get_msg(nni_aio *aio)
}
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)
{
if (index < NNI_NUM_ELEMENTS(aio->a_inputs)) {
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.