mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r29625] Description:
Removed unused routines Tested on: MacOSX/64 10.11.4 (amazon) w/serial & parallel (h5committest forthcoming)
This commit is contained in:
parent
0024745638
commit
2221a9a96e
110
src/H5EA.c
110
src/H5EA.c
@ -875,116 +875,6 @@ CATCH
|
||||
|
||||
END_FUNC(PRIV) /* end H5EA_undepend() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5EA_support
|
||||
*
|
||||
* Purpose: Create a child flush dependency on the array metadata that
|
||||
* contains the element for an array index.
|
||||
*
|
||||
* Return: SUCCEED/FAIL
|
||||
*
|
||||
* Programmer: Quincey Koziol
|
||||
* koziol@hdfgroup.org
|
||||
* May 21 2009
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
BEGIN_FUNC(PRIV, ERR,
|
||||
herr_t, SUCCEED, FAIL,
|
||||
H5EA_support(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx, H5AC_info_t *child_entry))
|
||||
|
||||
/* Local variables */
|
||||
void *thing = NULL; /* Pointer to the array metadata containing the array index we are interested in */
|
||||
uint8_t *thing_elmt_buf; /* Pointer to the element buffer for the array metadata */
|
||||
hsize_t thing_elmt_idx; /* Index of the element in the element buffer for the array metadata */
|
||||
H5EA__unprotect_func_t thing_unprot_func; /* Function pointer for unprotecting the array metadata */
|
||||
|
||||
#ifdef QAK
|
||||
HDfprintf(stderr, "%s: Called\n", FUNC);
|
||||
HDfprintf(stderr, "%s: Index %Hu\n", FUNC, idx);
|
||||
#endif /* QAK */
|
||||
|
||||
/*
|
||||
* Check arguments.
|
||||
*/
|
||||
HDassert(ea);
|
||||
|
||||
/* Look up the array metadata containing the element we want to set */
|
||||
if(H5EA__lookup_elmt(ea, dxpl_id, idx, H5AC__NO_FLAGS_SET, &thing, &thing_elmt_buf, &thing_elmt_idx, &thing_unprot_func) < 0)
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to protect array metadata")
|
||||
|
||||
/* Sanity check */
|
||||
HDassert(thing);
|
||||
HDassert(thing_elmt_buf);
|
||||
HDassert(thing_unprot_func);
|
||||
|
||||
/* Set up flush dependency between child_entry and metadata array 'thing' */
|
||||
if(H5EA__create_flush_depend((H5AC_info_t *)thing, child_entry) < 0)
|
||||
H5E_THROW(H5E_CANTDEPEND, "unable to create flush dependency on array metadata")
|
||||
|
||||
CATCH
|
||||
/* Release resources */
|
||||
if(thing && (thing_unprot_func)(thing, dxpl_id, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTUNPROTECT, "unable to release extensible array metadata")
|
||||
|
||||
END_FUNC(PRIV) /* end H5EA_support() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5EA_unsupport
|
||||
*
|
||||
* Purpose: Remove a flush dependency on the array metadata that contains
|
||||
* the element for an array index.
|
||||
*
|
||||
* Return: SUCCEED/FAIL
|
||||
*
|
||||
* Programmer: Quincey Koziol
|
||||
* koziol@hdfgroup.org
|
||||
* May 21 2009
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
BEGIN_FUNC(PRIV, ERR,
|
||||
herr_t, SUCCEED, FAIL,
|
||||
H5EA_unsupport(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx, H5AC_info_t *child_entry))
|
||||
|
||||
/* Local variables */
|
||||
void *thing = NULL; /* Pointer to the array metadata containing the array index we are interested in */
|
||||
uint8_t *thing_elmt_buf; /* Pointer to the element buffer for the array metadata */
|
||||
hsize_t thing_elmt_idx; /* Index of the element in the element buffer for the array metadata */
|
||||
H5EA__unprotect_func_t thing_unprot_func; /* Function pointer for unprotecting the array metadata */
|
||||
|
||||
#ifdef QAK
|
||||
HDfprintf(stderr, "%s: Called\n", FUNC);
|
||||
HDfprintf(stderr, "%s: Index %Hu\n", FUNC, idx);
|
||||
#endif /* QAK */
|
||||
|
||||
/*
|
||||
* Check arguments.
|
||||
*/
|
||||
HDassert(ea);
|
||||
|
||||
/* Look up the array metadata containing the element we want to set */
|
||||
if(H5EA__lookup_elmt(ea, dxpl_id, idx, H5AC__READ_ONLY_FLAG, &thing, &thing_elmt_buf, &thing_elmt_idx, &thing_unprot_func) < 0)
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to protect array metadata")
|
||||
|
||||
/* Sanity check */
|
||||
HDassert(thing);
|
||||
HDassert(thing_elmt_buf);
|
||||
HDassert(thing_unprot_func);
|
||||
|
||||
/* Remove flush dependency between child_entry and metadata array 'thing' */
|
||||
if(H5EA__destroy_flush_depend((H5AC_info_t *)thing, child_entry) < 0)
|
||||
H5E_THROW(H5E_CANTUNDEPEND, "unable to destroy flush dependency on array metadata")
|
||||
|
||||
CATCH
|
||||
/* Release resources */
|
||||
if(thing && (thing_unprot_func)(thing, dxpl_id, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTUNPROTECT, "unable to release extensible array metadata")
|
||||
|
||||
END_FUNC(PRIV) /* end H5EA_unsupport() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: H5EA_close
|
||||
|
@ -131,11 +131,6 @@ H5_DLL herr_t H5EA_get_addr(const H5EA_t *ea, haddr_t *addr);
|
||||
H5_DLL herr_t H5EA_set(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx, const void *elmt);
|
||||
H5_DLL herr_t H5EA_get(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx, void *elmt);
|
||||
H5_DLL herr_t H5EA_depend(H5AC_info_t *parent_entry, H5EA_t *ea);
|
||||
H5_DLL herr_t H5EA_undepend(H5AC_info_t *parent_entry, H5EA_t *ea);
|
||||
H5_DLL herr_t H5EA_support(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx,
|
||||
H5AC_info_t *child_entry);
|
||||
H5_DLL herr_t H5EA_unsupport(const H5EA_t *ea, hid_t dxpl_id, hsize_t idx,
|
||||
H5AC_info_t *child_entry);
|
||||
H5_DLL herr_t H5EA_close(H5EA_t *ea, hid_t dxpl_id);
|
||||
H5_DLL herr_t H5EA_delete(H5F_t *f, hid_t dxpl_id, haddr_t ea_addr, void *ctx_udata);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user