From fee07c19ce1fddce8cc5683d85b4715e101c0a06 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 6 Oct 2024 14:07:30 -0700 Subject: Remove unused legacy nng_closeall. --- include/nng/nng.h | 4 ---- src/nng_legacy.c | 8 +------- 2 files changed, 1 insertion(+), 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. +// Copyright 2024 Staysail Systems, Inc. // // 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 -- cgit v1.2.3-70-g09d2