aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index 3dcfe9e0..791ba4aa 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -103,23 +103,6 @@ nni_pipe_aio_send(nni_pipe *p, nni_aio *aio)
}
-void
-nni_pipe_hold(nni_pipe *p)
-{
- int rv;
-
- rv = nni_objhash_find(nni_pipes, p->p_id, NULL);
- NNI_ASSERT(rv == 0);
-}
-
-
-void
-nni_pipe_rele(nni_pipe *p)
-{
- nni_objhash_unref(nni_pipes, p->p_id);
-}
-
-
// nni_pipe_close closes the underlying connection. It is expected that
// subsequent attempts receive or send (including any waiting receive) will
// simply return NNG_ECLOSED.
@@ -160,7 +143,7 @@ nni_pipe_remove(nni_pipe *p)
nni_sock_pipe_stop(p->p_sock, p);
// XXX: would be simpler to just do a destroy here
- nni_pipe_rele(p);
+ nni_objhash_unref(nni_pipes, p->p_id);
}