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/core/socket.c | |
| 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/core/socket.c')
| -rw-r--r-- | src/core/socket.c | 9 |
1 files changed, 0 insertions, 9 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); |
