mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
HDFVIEW-4 removed unused functions
This commit is contained in:
parent
7ffba76bc3
commit
ce9bcb0dda
@ -1175,8 +1175,6 @@ public class H5 implements java.io.Serializable {
|
||||
|
||||
public synchronized static native int H5Aread_reg_ref(long attr_id, long mem_type_id, String[] buf)
|
||||
throws HDF5LibraryException, NullPointerException;
|
||||
|
||||
public synchronized static native int H5Aread_reg_ref_data(long attr_id, long mem_type_id, String[] buf)
|
||||
throws HDF5LibraryException, NullPointerException;
|
||||
|
||||
public synchronized static native int H5Aread_short(long attr_id, long mem_type_id, short[] buf, boolean isCriticalPinning)
|
||||
@ -2083,9 +2081,6 @@ public class H5 implements java.io.Serializable {
|
||||
public synchronized static native int H5Dread_reg_ref(long dataset_id, long mem_type_id, long mem_space_id,
|
||||
long file_space_id, long xfer_plist_id, String[] buf) throws HDF5LibraryException, NullPointerException;
|
||||
|
||||
public synchronized static native int H5Dread_reg_ref_data(long dataset_id, long mem_type_id, long mem_space_id,
|
||||
long file_space_id, long xfer_plist_id, String[] buf) throws HDF5LibraryException, NullPointerException;
|
||||
|
||||
public synchronized static native int H5Dread_short(long dataset_id, long mem_type_id, long mem_space_id,
|
||||
long file_space_id, long xfer_plist_id, short[] buf, boolean isCriticalPinning)
|
||||
throws HDF5LibraryException, NullPointerException;
|
||||
|
@ -1361,85 +1361,6 @@ Java_hdf_hdf5lib_H5_H5Aread_1reg_1ref
|
||||
return (jint)status;
|
||||
} /* end 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
|
||||
|
@ -220,15 +220,6 @@ JNIEXPORT jint JNICALL
|
||||
Java_hdf_hdf5lib_H5_H5Aread_1reg_1ref
|
||||
(JNIEnv*, jclass, jlong, jlong, jobjectArray);
|
||||
|
||||
/*
|
||||
* 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*, jclass, jlong, jlong, jobjectArray);
|
||||
|
||||
/*
|
||||
* Class: hdf_hdf5lib_H5
|
||||
* Method: H5Aget_space
|
||||
|
@ -1572,84 +1572,6 @@ Java_hdf_hdf5lib_H5_H5Dread_1reg_1ref
|
||||
return (jint)status;
|
||||
} /* end Java_hdf_hdf5lib_H5_H5Dread_1reg_1ref */
|
||||
|
||||
/*
|
||||
* Class: hdf_hdf5lib_H5
|
||||
* Method: H5Dread_reg_ref_data
|
||||
* Signature: (JJJJJ[Ljava/lang/String;)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_hdf_hdf5lib_H5_H5Dread_1reg_1ref_1data
|
||||
(JNIEnv *env, jclass clss,
|
||||
jlong dataset_id, jlong mem_type_id, jlong mem_space_id,
|
||||
jlong file_space_id, jlong xfer_plist_id, jobjectArray buf)
|
||||
{
|
||||
herr_t status = -1;
|
||||
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 did = (hid_t) dataset_id;
|
||||
hid_t tid = (hid_t) mem_type_id;
|
||||
hid_t mem_sid = (hid_t) mem_space_id;
|
||||
hid_t file_sid = (hid_t) file_space_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, "H5Dread_reg_ref_data: failed to allocate buff for read");
|
||||
return -1;
|
||||
} /* end if */
|
||||
|
||||
status = H5Dread(did, tid, mem_sid, file_sid, xfer_plist_id, ref_data);
|
||||
|
||||
if (status < 0) {
|
||||
HDfree(ref_data);
|
||||
h5JNIFatalError(env, "H5Dread_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);
|
||||
|
||||
return (jint)status;
|
||||
} /* end Java_hdf_hdf5lib_H5_H5Dread_1reg_1ref_1data */
|
||||
|
||||
/*
|
||||
* Class: hdf_hdf5lib_H5
|
||||
* Method: _H5Dcreate2
|
||||
|
@ -265,15 +265,6 @@ JNIEXPORT jint JNICALL
|
||||
Java_hdf_hdf5lib_H5_H5Dread_1reg_1ref
|
||||
(JNIEnv*, jclass, jlong, jlong, jlong, jlong, jlong, jobjectArray);
|
||||
|
||||
/*
|
||||
* Class: hdf_hdf5lib_H5
|
||||
* Method: H5Dread_reg_ref_data
|
||||
* Signature: (JJJJJ[Ljava/lang/String;)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_hdf_hdf5lib_H5_H5Dread_1reg_1ref_1data
|
||||
(JNIEnv*, jclass, jlong, jlong, jlong, jlong, jlong, jobjectArray);
|
||||
|
||||
/*
|
||||
* Class: hdf_hdf5lib_H5
|
||||
* Method: _H5Dcreate2
|
||||
|
Loading…
Reference in New Issue
Block a user