aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-06 14:07:30 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-06 14:07:30 -0700
commitfee07c19ce1fddce8cc5683d85b4715e101c0a06 (patch)
tree17fba70702a44e0171e503208103ec50ae2db15b
parentbdbc936ee4e1a08125be911b1ba11f8865ab4239 (diff)
downloadnng-fee07c19ce1fddce8cc5683d85b4715e101c0a06.tar.gz
nng-fee07c19ce1fddce8cc5683d85b4715e101c0a06.tar.bz2
nng-fee07c19ce1fddce8cc5683d85b4715e101c0a06.zip
Remove unused legacy nng_closeall.
-rw-r--r--include/nng/nng.h4
-rw-r--r--src/nng_legacy.c8
2 files changed, 1 insertions, 11 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 3826e8e1..431b32dd 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -1420,10 +1420,6 @@ NNG_DECL int nng_listener_setopt_ptr(
NNG_DECL int nng_listener_setopt_string(
nng_listener, const char *, const char *) NNG_DEPRECATED;
-// nng_closeall closes all open sockets. Do not call this from
-// a library; it will affect all sockets.
-NNG_DECL void nng_closeall(void) NNG_DEPRECATED;
-
#endif // NNG_ELIDE_DEPRECATED
// nng_init_parameter is used by applications to change a tunable setting.
diff --git a/src/nng_legacy.c b/src/nng_legacy.c
index 65ac7354..3dadc4e3 100644
--- a/src/nng_legacy.c
+++ b/src/nng_legacy.c
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -394,10 +394,4 @@ nng_listener_setopt_string(nng_listener id, const char *n, const char *v)
return (nng_listener_set_string(id, n, v));
}
-void
-nng_closeall(void)
-{
- nni_sock_closeall();
-}
-
#endif // NNG_ELIDE_DEPRECATED