summaryrefslogtreecommitdiffstats
path: root/src/H5Gloc.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-11-14 02:29:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-11-14 02:29:15 (GMT)
commit0b1bb5bda1296bb89d48c7542883ea25a5fb2174 (patch)
tree563f70f8b154cb91adeb3026932a93dd1cea4e41 /src/H5Gloc.c
parentf494ab7674dc39225deb4a06ba211f82f3e9df5e (diff)
downloadhdf5-0b1bb5bda1296bb89d48c7542883ea25a5fb2174.zip
hdf5-0b1bb5bda1296bb89d48c7542883ea25a5fb2174.tar.gz
hdf5-0b1bb5bda1296bb89d48c7542883ea25a5fb2174.tar.bz2
[svn-r12907] Description:
Finish refactoring internal link deletion code, to make it possible to wrap up the H5Ldelete_by_idx() coding. Tested on: Linxu/32 2.6 (chicago) Linxu/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Gloc.c')
-rw-r--r--src/H5Gloc.c69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/H5Gloc.c b/src/H5Gloc.c
index f33680a..3a94a79 100644
--- a/src/H5Gloc.c
+++ b/src/H5Gloc.c
@@ -397,72 +397,3 @@ done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5G_loc_insert() */
-
-/*-------------------------------------------------------------------------
- * Function: H5G_loc_exists
- *
- * Purpose: Check if a symbol exists in a location
- *
- * Return: Non-negative if object exists/Negative if object doesn't exist
- *
- * Programmer: Quincey Koziol
- * Monday, September 19, 2005
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5G_loc_exists(const H5G_loc_t *loc, const char *name, hid_t dxpl_id)
-{
- herr_t ret_value = SUCCEED; /* Return value */
-
- FUNC_ENTER_NOAPI(H5G_loc_exists, FAIL)
-
- /* Check args. */
- HDassert(loc);
- HDassert(name && *name);
-
- /* Get information for object in current group */
- if(H5G_obj_lookup(loc->oloc, name, NULL, dxpl_id) < 0)
- HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "component not found")
-
-done:
- FUNC_LEAVE_NOAPI(ret_value)
-} /* end H5G_loc_exists() */
-
-
-/*-------------------------------------------------------------------------
- * Function: H5G_loc_remove
- *
- * Purpose: Remove a link from a group
- *
- * Return: Non-negative on success/Negative on failure
- *
- * Programmer: Quincey Koziol
- * Monday, September 19, 2005
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5G_loc_remove(H5G_loc_t *grp_loc, const char *link_name, H5G_loc_t *obj_loc, hid_t dxpl_id)
-{
- H5G_obj_t obj_type; /* Type of object removed */
- herr_t ret_value = SUCCEED; /* Return value */
-
- FUNC_ENTER_NOAPI(H5G_loc_remove, FAIL)
-
- /* Check args. */
- HDassert(grp_loc);
- HDassert(link_name && *link_name);
-
- /* Remove object from group */
- if(H5G_obj_remove(grp_loc->oloc, link_name, &obj_type, dxpl_id) < 0)
- HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "component not found")
-
- /* Search the open IDs and replace names for unlinked object */
- if(H5G_name_replace(obj_type, obj_loc, NULL, NULL, H5G_NAME_DELETE) < 0)
- HGOTO_ERROR(H5E_SYM, H5E_CANTDELETE, FAIL, "unable to replace name")
-
-done:
- FUNC_LEAVE_NOAPI(ret_value)
-} /* end H5G_loc_remove() */
-