From e677cf5a779ab1698985cf926ba7112168bc5c97 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 7 Sep 2024 14:43:23 -0700 Subject: Remove deprecated context option functions. --- src/nng_legacy.c | 62 -------------------------------------------------------- 1 file changed, 62 deletions(-) (limited to 'src') diff --git a/src/nng_legacy.c b/src/nng_legacy.c index e2ddeebf..833c35d5 100644 --- a/src/nng_legacy.c +++ b/src/nng_legacy.c @@ -110,66 +110,4 @@ nng_setopt_ptr(nng_socket id, const char *n, void *v) return (nng_socket_set_ptr(id, n, v)); } -// Contexts. - -int -nng_ctx_getopt(nng_ctx id, const char *n, void *v, size_t *sz) -{ - return (nng_ctx_get(id, n, v, sz)); -} - -int -nng_ctx_getopt_int(nng_ctx id, const char *n, int *v) -{ - return (nng_ctx_get_int(id, n, v)); -} - -int -nng_ctx_getopt_bool(nng_ctx id, const char *n, bool *v) -{ - return (nng_ctx_get_bool(id, n, v)); -} - -int -nng_ctx_getopt_size(nng_ctx id, const char *n, size_t *v) -{ - return (nng_ctx_get_size(id, n, v)); -} - -int -nng_ctx_getopt_ms(nng_ctx id, const char *n, nng_duration *v) -{ - return (nng_ctx_get_ms(id, n, v)); -} - -int -nng_ctx_setopt(nng_ctx id, const char *name, const void *v, size_t sz) -{ - return (nng_ctx_set(id, name, v, sz)); -} - -int -nng_ctx_setopt_bool(nng_ctx id, const char *n, bool v) -{ - return (nng_ctx_set_bool(id, n, v)); -} - -int -nng_ctx_setopt_int(nng_ctx id, const char *n, int v) -{ - return (nng_ctx_set_int(id, n, v)); -} - -int -nng_ctx_setopt_ms(nng_ctx id, const char *n, nng_duration v) -{ - return (nng_ctx_set_ms(id, n, v)); -} - -int -nng_ctx_setopt_size(nng_ctx id, const char *n, size_t v) -{ - return (nng_ctx_set_size(id, n, v)); -} - #endif // NNG_ELIDE_DEPRECATED -- cgit v1.2.3-70-g09d2