aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/nng/nng.h4
-rw-r--r--src/nng_legacy.c13
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)
{