diff options
author | Quincey Koziol <quincey@koziol.cc> | 2023-04-13 19:10:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 19:10:48 (GMT) |
commit | 18b8534174fcdd5b839025b5eb5ec1b4e21f370c (patch) | |
tree | 9e97d4606f736f5667ecd29949e7e9f5696577fb /src | |
parent | 6e90b1fdb6f69a09089905d7a3346ce944a779f3 (diff) | |
download | hdf5-18b8534174fcdd5b839025b5eb5ec1b4e21f370c.zip hdf5-18b8534174fcdd5b839025b5eb5ec1b4e21f370c.tar.gz hdf5-18b8534174fcdd5b839025b5eb5ec1b4e21f370c.tar.bz2 |
Remove dead code for H5C__SLIST_OPT_ENABLED (#2721)
* Remove dead code for H5C__SLIST_OPT_ENABLED
Diffstat (limited to 'src')
-rw-r--r-- | src/H5C.c | 10 | ||||
-rw-r--r-- | src/H5Cpkg.h | 6 |
2 files changed, 1 insertions, 15 deletions
@@ -261,7 +261,7 @@ H5C_create(size_t max_cache_size, size_t min_clean_size, int max_type_id, cache_ptr->num_objs_corked = 0; /* slist field initializations */ - cache_ptr->slist_enabled = !H5C__SLIST_OPT_ENABLED; + cache_ptr->slist_enabled = FALSE; cache_ptr->slist_changed = FALSE; cache_ptr->slist_len = 0; cache_ptr->slist_size = (size_t)0; @@ -2708,8 +2708,6 @@ H5C_set_slist_enabled(H5C_t *cache_ptr, hbool_t slist_enabled, hbool_t clear_sli if ((cache_ptr == NULL) || (cache_ptr->magic != H5C__H5C_T_MAGIC)) HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "Bad cache_ptr on entry") -#if H5C__SLIST_OPT_ENABLED - if (slist_enabled) { if (cache_ptr->slist_enabled) HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "slist already enabled?") @@ -2763,12 +2761,6 @@ H5C_set_slist_enabled(H5C_t *cache_ptr, hbool_t slist_enabled, hbool_t clear_sli HDassert(0 == cache_ptr->slist_size); } -#else /* H5C__SLIST_OPT_ENABLED is FALSE */ - - HDassert(cache_ptr->slist_enabled); - -#endif /* H5C__SLIST_OPT_ENABLED is FALSE */ - done: FUNC_LEAVE_NOAPI(ret_value) } /* H5C_set_slist_enabled() */ diff --git a/src/H5Cpkg.h b/src/H5Cpkg.h index 55c7d03..08d74db 100644 --- a/src/H5Cpkg.h +++ b/src/H5Cpkg.h @@ -59,12 +59,6 @@ #define H5C_FLUSH_DEP_PARENT_INIT 8 -/* Set to TRUE to enable the slist optimization. If this field is TRUE, - * the slist is disabled whenever a flush is not in progress. - */ -#define H5C__SLIST_OPT_ENABLED TRUE - - /**************************************************************************** * * We maintain doubly linked lists of instances of H5C_cache_entry_t for a |