diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-17 10:56:12 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-17 10:56:12 -0700 |
| commit | e3f180030761ecec815f00279ee08fa200546a87 (patch) | |
| tree | cd8596a3a618c5ffda027a3cb838eb4ef5705ed2 /src | |
| parent | 80f509d30406ed58f3df113e38bc3e59f30a326e (diff) | |
| download | nng-e3f180030761ecec815f00279ee08fa200546a87.tar.gz nng-e3f180030761ecec815f00279ee08fa200546a87.tar.bz2 nng-e3f180030761ecec815f00279ee08fa200546a87.zip | |
Ditch unused nni_sock_hold() call.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/socket.c | 9 | ||||
| -rw-r--r-- | src/core/socket.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 52732cde..a903ead6 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -63,15 +63,6 @@ nni_sock_find(nni_sock **sockp, uint32_t id) } void -nni_sock_hold(nni_sock *sock) -{ - int rv; - - rv = nni_objhash_find(nni_socks, sock->s_id, NULL); - NNI_ASSERT(rv == 0); -} - -void nni_sock_rele(nni_sock *sock) { nni_objhash_unref(nni_socks, sock->s_id); diff --git a/src/core/socket.h b/src/core/socket.h index d4c053c8..d0196eea 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -64,7 +64,6 @@ extern int nni_sock_sys_init(void); extern void nni_sock_sys_fini(void); extern int nni_sock_find(nni_sock **, uint32_t); -extern void nni_sock_hold(nni_sock *); extern void nni_sock_rele(nni_sock *); extern int nni_sock_open(nni_sock **, uint16_t); extern void nni_sock_close(nni_sock *); |
