From ab460d51aee7cedd0a8d17553741b3a6dc836dc7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Dec 2024 21:23:26 -0800 Subject: transports: all transports use the new inline approach We can retire the old approach that used separate allocations, and all of the supporting code. This also gives us a more natural signature for the end point initializations. --- src/core/socket.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/core/socket.c') diff --git a/src/core/socket.c b/src/core/socket.c index ec2691a3..6ba5d54e 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1325,24 +1325,6 @@ dialer_start_pipe(nni_dialer *d, nni_pipe *p) nni_pipe_rele(p); } -void -nni_dialer_add_pipe(nni_dialer *d, void *tpipe) -{ - nni_sock *s = d->d_sock; - nni_pipe *p; - - if (nni_pipe_create_dialer(&p, d, tpipe) != 0) { - return; - } - - nni_mtx_lock(&s->s_mx); - d->d_pipe = p; - d->d_currtime = d->d_inirtime; - nni_mtx_unlock(&s->s_mx); - - dialer_start_pipe(d, p); -} - void nni_dialer_shutdown(nni_dialer *d) { @@ -1452,18 +1434,6 @@ listener_start_pipe(nni_listener *l, nni_pipe *p) nni_pipe_rele(p); } -void -nni_listener_add_pipe(nni_listener *l, void *tpipe) -{ - nni_pipe *p; - - if (nni_pipe_create_listener(&p, l, tpipe) != 0) { - return; - } - - listener_start_pipe(l, p); -} - void nni_listener_shutdown(nni_listener *l) { -- cgit v1.2.3-70-g09d2