summaryrefslogtreecommitdiffstats
path: root/src/H5SLprivate.h
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-10-22 15:02:28 (GMT)
committerGitHub <noreply@github.com>2021-10-22 15:02:28 (GMT)
commitb0bd984ed620aeca1047f1f45692890eacb924be (patch)
tree5a7444c509038c5f8e063ae512d8ffa5994e0a38 /src/H5SLprivate.h
parent4600e10106c330d70a19ae6295f9d04ea7d4adb7 (diff)
downloadhdf5-b0bd984ed620aeca1047f1f45692890eacb924be.zip
hdf5-b0bd984ed620aeca1047f1f45692890eacb924be.tar.gz
hdf5-b0bd984ed620aeca1047f1f45692890eacb924be.tar.bz2
Removes the "try free" behavior from the skip lists (#1126)
* Removes the "try free" behavior from the skip lists This was only used in the ID code when iterating and a callback could delete IDs. It is not used anywhere else in the library and is now pointless overhead. Also quiets the const warnings when returning stored elements. They only need to be const with respect to the skip list code, which should never modify them. The library can do whatever it wants with the elements it stored. * Formatted source
Diffstat (limited to 'src/H5SLprivate.h')
-rw-r--r--src/H5SLprivate.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/H5SLprivate.h b/src/H5SLprivate.h
index c9e1147..be6f7b6 100644
--- a/src/H5SLprivate.h
+++ b/src/H5SLprivate.h
@@ -60,9 +60,6 @@ typedef int (*H5SL_cmp_t)(const void *key1, const void *key2);
/* Typedef for iteration operations */
typedef herr_t (*H5SL_operator_t)(void *item, void *key, void *operator_data /*in,out*/);
-/* Typedef for H5SL_try_free_safe operation callback */
-typedef htri_t (*H5SL_try_free_op_t)(void *item, void *key, void *operator_data /*in,out*/);
-
/********************/
/* Private routines */
/********************/
@@ -86,7 +83,6 @@ H5_DLL void * H5SL_item(H5SL_node_t *slist_node);
H5_DLL herr_t H5SL_iterate(H5SL_t *slist, H5SL_operator_t op, void *op_data);
H5_DLL herr_t H5SL_release(H5SL_t *slist);
H5_DLL herr_t H5SL_free(H5SL_t *slist, H5SL_operator_t op, void *op_data);
-H5_DLL herr_t H5SL_try_free_safe(H5SL_t *slist, H5SL_try_free_op_t op, void *op_data);
H5_DLL herr_t H5SL_close(H5SL_t *slist);
H5_DLL herr_t H5SL_destroy(H5SL_t *slist, H5SL_operator_t op, void *op_data);
H5_DLL int H5SL_term_interface(void);