aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/aio.c7
-rw-r--r--src/core/aio.h6
2 files changed, 0 insertions, 13 deletions
diff --git a/src/core/aio.c b/src/core/aio.c
index 388e6677..3606aa14 100644
--- a/src/core/aio.c
+++ b/src/core/aio.c
@@ -175,13 +175,6 @@ nni_aio_set_iov(nni_aio *aio, unsigned niov, const nni_iov *iov)
return (0);
}
-void
-nni_aio_fini_cb(nni_aio *aio)
-{
- nni_cv_fini(&aio->a_cv);
- NNI_FREE_STRUCT(aio);
-}
-
// nni_aio_stop cancels any oustanding operation, and waits for the
// callback to complete, if still running. It also marks the AIO as
// stopped, preventing further calls to nni_aio_begin from succeeding.
diff --git a/src/core/aio.h b/src/core/aio.h
index d23ddf5b..9b7ac46f 100644
--- a/src/core/aio.h
+++ b/src/core/aio.h
@@ -32,12 +32,6 @@ extern int nni_aio_init(nni_aio **, nni_cb, void *);
// on zero'd memory.
extern void nni_aio_fini(nni_aio *);
-// nni_aio_fini_cb finalizes the aio WITHOUT waiting for it to complete.
-// This is intended exclusively for finalizing an AIO from a completion
-// callack for that AIO. It is important that the caller ensure that nothing
-// else might be waiting for that AIO or using it.
-extern void nni_aio_fini_cb(nni_aio *);
-
// nni_aio_stop cancels any unfinished I/O, running completion callbacks,
// but also prevents any new operations from starting (nni_aio_start will
// return NNG_ESTATE). This should be called before nni_aio_fini(). The