diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-12-12 14:50:58 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-12-12 14:50:58 (GMT) |
commit | ce9bcb0ddacce2c1ed74c4f32004a1772acd5df5 (patch) | |
tree | 7d1fc9fc2cc9ed230f3af7d2dbd449b87006d8b6 /java/src/jni/h5aImp.c | |
parent | 7ffba76bc372cec11739b2afa578138129876e7e (diff) | |
download | hdf5-ce9bcb0ddacce2c1ed74c4f32004a1772acd5df5.zip hdf5-ce9bcb0ddacce2c1ed74c4f32004a1772acd5df5.tar.gz hdf5-ce9bcb0ddacce2c1ed74c4f32004a1772acd5df5.tar.bz2 |
HDFVIEW-4 removed unused functions
Diffstat (limited to 'java/src/jni/h5aImp.c')
-rw-r--r-- | java/src/jni/h5aImp.c | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/java/src/jni/h5aImp.c b/java/src/jni/h5aImp.c index 68f203e..e0ec4ca 100644 --- a/java/src/jni/h5aImp.c +++ b/java/src/jni/h5aImp.c @@ -1363,85 +1363,6 @@ Java_hdf_hdf5lib_H5_H5Aread_1reg_1ref /* * Class: hdf_hdf5lib_H5 - * Method: H5Aread_reg_ref_data - * Signature: (JJ[Ljava/lang/String;)I - */ -JNIEXPORT jint JNICALL -Java_hdf_hdf5lib_H5_H5Aread_1reg_1ref_1data - (JNIEnv *env, jclass clss, jlong attr_id, jlong mem_type_id, jobjectArray buf) -{ - herr_t status = -1; - - h5unimplemented(env, "H5Aread_reg_ref_data: not implemented"); - status = -1; - -#ifdef notdef - h5str_t h5str; - size_t size; - hdset_reg_ref_t *ref_data; - jint i; - jint n; - jstring jstr; - - hid_t region_obj; - H5S_sel_type region_type; - - hid_t region = -1; - hid_t aid = (hid_t) attr_id; - hid_t tid = (hid_t) mem_type_id; - n = ENVPTR->GetArrayLength(ENVPAR buf); - size = sizeof(hdset_reg_ref_t); /*H5Tget_size(tid);*/ - ref_data = (hdset_reg_ref_t*)HDmalloc(size * (size_t)n); - - if (ref_data == NULL) { - h5JNIFatalError(env, "H5Aread_reg_ref_data: failed to allocate buff for read"); - return -1; - } /* end if */ - - status = H5Aread(aid, tid, ref_data); - - if (status < 0) { - HDfree(ref_data); - h5JNIFatalError(env, "H5Aread_reg_ref_data: failed to read data"); - return -1; - } /* end if */ - - HDmemset(&h5str, 0, sizeof(h5str_t)); - h5str_new(&h5str, 1024); - for (i=0; i<n; i++) { - h5str.s[0] = '\0'; - - /* get name of the dataset the region reference points to using H5Rget_name */ - region_obj = H5Rdereference2(did, H5P_DEFAULT, H5R_DATASET_REGION, ref_data[i]); - if (region_obj >= 0) { - region = H5Rget_region(did, H5R_DATASET_REGION, ref_data[i]); - if (region >= 0) { - region_type = H5Sget_select_type(region); - if(region_type==H5S_SEL_POINTS) { - h5str_dump_region_points_data(&h5str, region, region_obj); - } /* end if */ - else { - h5str_dump_region_blocks_data(&h5str, region, region_obj); - } /* end else */ - - H5Sclose(region); - } /* end if */ - H5Dclose(region_obj); - } /* end if */ - jstr = ENVPTR->NewStringUTF(ENVPAR h5str.s); - - ENVPTR->SetObjectArrayElement(ENVPAR buf, i, jstr); - } /* end for */ - - h5str_free(&h5str); - HDfree(ref_data); -#endif - - return (jint)status; -} /* end Java_hdf_hdf5lib_H5_H5Aread_1reg_1ref_1data */ - -/* - * Class: hdf_hdf5lib_H5 * Method: H5Aget_space * Signature: (J)J */ |