summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-10-26 22:27:10 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-10-26 22:27:10 (GMT)
commitce3d1ec9ea5a7a0627d948687d64dc7e5e76f6cd (patch)
treeddf31eb610bea93dbd800e10b30cc7e17bd71b6f /src/H5VLnative.c
parent171deaa588183b5a3a9d27a5f3f407d398ba53db (diff)
downloadhdf5-ce3d1ec9ea5a7a0627d948687d64dc7e5e76f6cd.zip
hdf5-ce3d1ec9ea5a7a0627d948687d64dc7e5e76f6cd.tar.gz
hdf5-ce3d1ec9ea5a7a0627d948687d64dc7e5e76f6cd.tar.bz2
Eliminate last call to H5VL_native_register, shifting everything over to
the VOL plugin wrapping code.
Diffstat (limited to 'src/H5VLnative.c')
-rw-r--r--src/H5VLnative.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/H5VLnative.c b/src/H5VLnative.c
index 22723a0..69b010b 100644
--- a/src/H5VLnative.c
+++ b/src/H5VLnative.c
@@ -376,43 +376,6 @@ done:
} /* H5VL__native_get_file */
-/*---------------------------------------------------------------------------
- * Function: H5VL_native_register
- *
- * Purpose: Utility routine to register an ID with the native VOL plugin
- * as an auxilary object.
- *
- * Returns: Success: An ID for the object
- * Failure: H5I_INVALID_HID
- *
- *---------------------------------------------------------------------------
- */
-hid_t
-H5VL_native_register(H5I_type_t type, const void *obj, hbool_t app_ref)
-{
- hid_t ret_value = H5I_INVALID_HID;
-
- FUNC_ENTER_NOAPI(H5I_INVALID_HID)
-
- HDassert(obj);
-
- /* If the datatype is already VOL-managed, the datatype's vol_obj
- * field will get clobbered later, so disallow this.
- */
- if(type == H5I_DATATYPE)
- if(((const H5T_t *)obj)->vol_obj != NULL)
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5I_INVALID_HID, "can only get an ID for an uncommitted datatype")
-
-HDassert(0 && "H5VL_native_register");
- /* Get an ID for the object */
- if((ret_value = H5VL_register_using_vol_id(type, obj, H5VL_NATIVE_ID_g, app_ref)) < 0)
- HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to get an ID for the object")
-
-done:
- FUNC_LEAVE_NOAPI(ret_value)
-} /* end H5VL_native_register() */
-
-
/*-------------------------------------------------------------------------
* Function: H5VL__native_attr_create
*