diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-09-07 14:35:46 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 14:13:06 -0700 |
| commit | ce0f3f9934465ade07dd77af49a29b527a94d735 (patch) | |
| tree | ed4c1f91e0c46b068694e21db8b2a8d9a2e542c8 | |
| parent | fee07c19ce1fddce8cc5683d85b4715e101c0a06 (diff) | |
| download | nng-ce0f3f9934465ade07dd77af49a29b527a94d735.tar.gz nng-ce0f3f9934465ade07dd77af49a29b527a94d735.tar.bz2 nng-ce0f3f9934465ade07dd77af49a29b527a94d735.zip | |
Drop unused nng_msg_getopt
| -rw-r--r-- | include/nng/nng.h | 4 | ||||
| -rw-r--r-- | src/nng_legacy.c | 13 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h index 431b32dd..63a3bde4 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -1300,10 +1300,6 @@ NNG_DECL int nng_udp_multicast_membership( // These are legacy APIs that have been deprecated. // Their use is strongly discouraged. -// nng_msg_getopt is defunct, and should not be used by programs. It -// always returns NNG_ENOTSUP. -NNG_DECL int nng_msg_getopt(nng_msg *, int, void *, size_t *) NNG_DEPRECATED; - // Socket options. Use nng_socket_get and nng_socket_set instead. NNG_DECL int nng_getopt( nng_socket, const char *, void *, size_t *) NNG_DEPRECATED; diff --git a/src/nng_legacy.c b/src/nng_legacy.c index 3dadc4e3..bbaba36f 100644 --- a/src/nng_legacy.c +++ b/src/nng_legacy.c @@ -14,19 +14,6 @@ // Eventually they will likely be removed. For now we have // to continue to provide them for compatibility. -// This function is not supported, but we keep it around to -// satisfy link dependencies in old programs. It has never done -// anything useful. -int -nng_msg_getopt(nng_msg *msg, int opt, void *ptr, size_t *szp) -{ - NNI_ARG_UNUSED(msg); - NNI_ARG_UNUSED(opt); - NNI_ARG_UNUSED(ptr); - NNI_ARG_UNUSED(szp); - return (NNG_ENOTSUP); -} - int nng_getopt(nng_socket id, const char *n, void *v, size_t *sz) { |
