diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-21 05:37:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 05:37:07 (GMT) |
commit | 56513d9df75de92bb96f24e9d0e5e30dce54d065 (patch) | |
tree | 61ddcb5cf21d4981174719be3d09c99d958817f9 /test/h5test.c | |
parent | 94ea835bbb50d5b5215c7e02515cd0f603985c92 (diff) | |
download | hdf5-56513d9df75de92bb96f24e9d0e5e30dce54d065.zip hdf5-56513d9df75de92bb96f24e9d0e5e30dce54d065.tar.gz hdf5-56513d9df75de92bb96f24e9d0e5e30dce54d065.tar.bz2 |
Remove dead code behind #ifdef OLD_WAY (#3163)
Diffstat (limited to 'test/h5test.c')
-rw-r--r-- | test/h5test.c | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/test/h5test.c b/test/h5test.c index c0e93b9..54ff330 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -320,15 +320,11 @@ h5_restore_err(void) } /*------------------------------------------------------------------------- - * Function: h5_reset + * Function: h5_reset * - * Purpose: Reset the library by closing it. - * - * Return: void - * - * Programmer: Robb Matzke - * Friday, November 20, 1998 + * Purpose: Reset the library by closing it * + * Return: void *------------------------------------------------------------------------- */ void @@ -342,36 +338,6 @@ h5_reset(void) HDassert(err_func == NULL); H5Eget_auto2(H5E_DEFAULT, &err_func, NULL); H5Eset_auto2(H5E_DEFAULT, h5_errors, NULL); - -/* - * I commented this chunk of code out because it's not clear what diagnostics - * were being output and under what circumstances, and creating this file - * is throwing off debugging some of the tests. I can't see any _direct_ - * harm in keeping this section of code, but I can't see any _direct_ - * benefit right now either. If we figure out under which circumstances - * diagnostics are being output, we should enable this behavior based on - * appropriate configure flags/macros. QAK - 2007/12/20 - */ -#ifdef OLD_WAY - { - char filename[1024]; - - /* - * Cause the library to emit some diagnostics early so they don't - * interfere with other formatted output. - */ - HDsnprintf(filename, sizeof(filename), "/tmp/h5emit-%05d.h5", HDgetpid()); - H5E_BEGIN_TRY - { - hid_t file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); - hid_t grp = H5Gcreate2(file, "emit", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); - H5Gclose(grp); - H5Fclose(file); - HDunlink(filename); - } - H5E_END_TRY - } -#endif /* OLD_WAY */ } /*------------------------------------------------------------------------- |