schema CHANGE remove private_destructor parameter from ly_ctx_destroy()
The mechanism was not reliable and not used often. libyang provide
function to traverse the schema and free the set data manually or the
caller can maintain some information to free the set data directly.
This commit changes API.
diff --git a/src/tree_schema.h b/src/tree_schema.h
index d54ac09..564be73 100644
--- a/src/tree_schema.h
+++ b/src/tree_schema.h
@@ -76,8 +76,8 @@
* the ::lysc_node.priv pointers are used by libyang.
* Note that the object is not freed by libyang when the context is being destroyed. So the caller is responsible
* for freeing the provided structure after the context is destroyed or the private pointer is set to NULL in
- * appropriate schema nodes where the object was previously set. This can be automated via destructor function
- * to free these private objects. The destructor is passed to the ::ly_ctx_destroy() function.
+ * appropriate schema nodes where the object was previously set. Also ::lysc_tree_dfs_full() can be useful to manage
+ * the private data.
*
* Despite all the schema structures and their members are available as part of the libyang API and callers can use
* it to navigate through the schema tree structure or to obtain various information, we recommend to use the following