diff options
author | Frank Willmore <Frank.Willmore@hdfgroup.org> | 2018-01-11 03:34:39 (GMT) |
---|---|---|
committer | Frank Willmore <Frank.Willmore@hdfgroup.org> | 2018-01-11 03:34:39 (GMT) |
commit | 0f75873985c6e4e86d509126fe10d013abd4e541 (patch) | |
tree | b8c455431030fa442807f3150a57b7c3456dd5ab | |
parent | c58f25f6d6108c49811dd18e1dc8e8236cad4976 (diff) | |
download | hdf5-0f75873985c6e4e86d509126fe10d013abd4e541.zip hdf5-0f75873985c6e4e86d509126fe10d013abd4e541.tar.gz hdf5-0f75873985c6e4e86d509126fe10d013abd4e541.tar.bz2 |
cleanup
-rw-r--r-- | src/H5VLjson.c | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/H5VLjson.c b/src/H5VLjson.c index 266cb3c..ac8b537 100644 --- a/src/H5VLjson.c +++ b/src/H5VLjson.c @@ -2922,7 +2922,7 @@ done: * will write the *current* time to time_buf in UTC * */ -herr_t h5json_get_utc_string_from_time(time_t t, char *time_buf) +static herr_t h5json_get_utc_string_from_time(time_t t, char *time_buf) { herr_t ret_value = SUCCEED; @@ -2952,8 +2952,6 @@ static herr_t h5json_uuid_generate(h5json_uuid_t uuid) { herr_t ret_value = SUCCEED; -// FUNC_ENTER_NOAPI_NOINIT - FILE* urandom = fopen("/dev/urandom", "r"); unsigned char* buffer = (unsigned char*)malloc(16); @@ -2972,7 +2970,6 @@ done: fclose(urandom); return SUCCEED; -// FUNC_LEAVE_NOAPI(ret_value) } @@ -2997,15 +2994,7 @@ static json_t* h5json_new_uuid_json_object() return ret_val; } - -/* XXX: Potentially modify to deal with the trailing slash case */ -static const char* -get_basename(const char *path) -{ - char *substr = strrchr(path, '/'); - return substr ? substr + 1 : path; -} /* end get_basename() */ - +#if 0 static herr_t get_link_type_callback(char *HTTP_response, void H5_ATTR_UNUSED *callback_data_in, void *callback_data_out) @@ -3063,6 +3052,10 @@ get_link_type_callback(char *HTTP_response, void H5_ATTR_UNUSED *callback_data_i return SUCCEED; } /* end get_link_type_callback() */ +#endif + +#if 0 +#endif /*------------------------------------------------------------------------- @@ -3222,6 +3215,7 @@ done: } /* end H5VL_json_find_link_by_path() */ #endif +#if 0 /*------------------------------------------------------------------------- * Function: H5VL_json_convert_predefined_datatype_to_string @@ -3270,7 +3264,9 @@ H5VL_json_convert_predefined_datatype_to_string(hid_t type_id) done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_json_convert_predefined_datatype_to_string() */ +#endif +#if 0 /*------------------------------------------------------------------------- * Function: H5VL_json_convert_datatype_class_to_string @@ -3312,7 +3308,9 @@ H5VL_json_convert_datatype_class_to_string(hid_t type_id) done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_json_convert_datatype_class_to_string() */ +#endif +#if 0 /*------------------------------------------------------------------------- * Function: H5VL_json_convert_datatype_to_string @@ -3794,7 +3792,9 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_json_convert_datatype_to_string() */ +#endif +#if 0 /*------------------------------------------------------------------------- * Function: H5VL_json_convert_string_to_datatype @@ -4422,7 +4422,9 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_json_convert_string_to_datatype() */ +#endif +#if 0 /*------------------------------------------------------------------------- * Function: H5VL_json_parse_datatype @@ -4597,6 +4599,9 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_json_parse_datatype() */ +#endif + +#if 0 static herr_t @@ -4744,6 +4749,7 @@ H5VL_json_convert_dataspace_selection_to_string(hid_t space_id, char *selection_ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_json_convert_dataspace_selection_to_string() */ +#endif #if 0 |