Skip to content

Commit

Permalink
Remove unused legacy nng_closeall.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Oct 6, 2024
1 parent bdbc936 commit fee07c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions include/nng/nng.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 1 addition & 7 deletions src/nng_legacy.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2020 Staysail Systems, Inc. <[email protected]>
// Copyright 2024 Staysail Systems, Inc. <[email protected]>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
Expand Down Expand Up @@ -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

0 comments on commit fee07c1

Please sign in to comment.