From cc3b5fe459d277ee46277bc26301249f57855470 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 24 Nov 2024 08:53:12 -0800 Subject: socket: remove unused nng_socket_get_ptr and nng_socket_set_ptr. We will be removing these pointer based functions more generally as we we have type-specific accessors instead. We also removed the context versions of these functions, which were not previously documented. --- docs/ref/migrate/nng1.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/migrate/nng1.md b/docs/ref/migrate/nng1.md index cb7bc539..f704c1f6 100644 --- a/docs/ref/migrate/nng1.md +++ b/docs/ref/migrate/nng1.md @@ -87,6 +87,14 @@ The `_getopt` and `_setopt` functions for contexts, listeners, and dialers are n present. Simply changing `_getopt` to `_get` or `_setopt` to `_set` in the function name should be sufficient in most cases. +The following functions served no useful purpose (after other changes described in this document), +and are thus removed: + +- `nng_socket_get_ptr` +- `nng_socket_set_ptr` +- `nng_ctx_get_ptr` (not documented) +- `nng_ctx_set_ptr` (not documented) + ## Untyped Option Functions Removed The following functions are removed. To access options, use a proper typed access function, -- cgit v1.2.3-70-g09d2