diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-04-10 18:39:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 18:39:46 (GMT) |
commit | 1ad030f6696159c498880a4d785f9a2f7ae6fd32 (patch) | |
tree | 8d490d787715c0c06a903bc6a7bc6ad73ea75421 /test | |
parent | fc91e8856f9babe0d2533a952209473be11b4ccd (diff) | |
download | hdf5-1ad030f6696159c498880a4d785f9a2f7ae6fd32.zip hdf5-1ad030f6696159c498880a4d785f9a2f7ae6fd32.tar.gz hdf5-1ad030f6696159c498880a4d785f9a2f7ae6fd32.tar.bz2 |
Remove dead code hidden behind #ifdef LATER (#2686)
Diffstat (limited to 'test')
-rw-r--r-- | test/tattr.c | 36 | ||||
-rw-r--r-- | test/tfile.c | 6 |
2 files changed, 4 insertions, 38 deletions
diff --git a/test/tattr.c b/test/tattr.c index 35b42dd..a4ff088 100644 --- a/test/tattr.c +++ b/test/tattr.c @@ -5503,13 +5503,9 @@ test_attr_corder_delete(hid_t fcpl, hid_t fapl) hsize_t corder_count; /* # of records in creation order index */ unsigned reopen_file; /* Whether to re-open the file before deleting group */ char attrname[NAME_BUF_SIZE]; /* Name of attribute */ -#ifdef LATER - h5_stat_size_t empty_size; /* Size of empty file */ - h5_stat_size_t file_size; /* Size of file after operating on it */ -#endif /* LATER */ - unsigned curr_dset; /* Current dataset to work on */ - unsigned u; /* Local index variable */ - herr_t ret; /* Generic return value */ + unsigned curr_dset; /* Current dataset to work on */ + unsigned u; /* Local index variable */ + herr_t ret; /* Generic return value */ /* Output message about test being performed */ MESSAGE(5, ("Testing Deleting Object w/Dense Attribute Storage and Creation Order Info\n")); @@ -5536,24 +5532,6 @@ test_attr_corder_delete(hid_t fcpl, hid_t fapl) ret = H5Pget_attr_phase_change(dcpl, &max_compact, &min_dense); CHECK(ret, FAIL, "H5Pget_attr_phase_change"); -/* XXX: Try to find a way to resize dataset's object header so that the object - * header can have one chunk, then retrieve "empty" file size and check - * that size after everything is deleted -QAK - */ -#ifdef LATER - /* Create empty file */ - fid = H5Fcreate(FILENAME, H5F_ACC_TRUNC, fcpl, fapl); - CHECK(fid, FAIL, "H5Fcreate"); - - /* Close file */ - ret = H5Fclose(fid); - CHECK(ret, FAIL, "H5Fclose"); - - /* Get the size of an empty file */ - empty_size = h5_get_file_size(FILENAME); - CHECK(empty_size, FAIL, "h5_get_file_size"); -#endif /* LATER */ - /* Loop to leave file open when deleting dataset, or to close & re-open file * before deleting dataset */ for (reopen_file = FALSE; reopen_file <= TRUE; reopen_file++) { @@ -5666,13 +5644,7 @@ test_attr_corder_delete(hid_t fcpl, hid_t fapl) CHECK(ret, FAIL, "H5Fclose"); } /* end if */ -#ifdef LATER - /* Get the size of the file now */ - file_size = h5_get_file_size(FILENAME); - CHECK(file_size, FAIL, "h5_get_file_size"); - VERIFY(file_size, empty_size, "h5_get_file_size"); -#endif /* LATER */ - } /* end for */ + } /* end for */ /* Close property list */ ret = H5Pclose(dcpl); diff --git a/test/tfile.c b/test/tfile.c index 03ade92..bca3da2 100644 --- a/test/tfile.c +++ b/test/tfile.c @@ -331,12 +331,6 @@ test_file_create(void) ret = H5Pclose(tmpl1); CHECK(ret, FAIL, "H5Pclose"); -#ifdef LATER - /* Double-check that the atom has been vaporized */ - ret = H5Pclose(tmpl1); - VERIFY(ret, FAIL, "H5Pclose"); -#endif - if (h5_using_default_driver(NULL)) { /* Create a new file with a non-standard file-creation template */ |