summaryrefslogtreecommitdiffstats
path: root/src/H5B2.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-21 05:37:07 (GMT)
committerGitHub <noreply@github.com>2023-06-21 05:37:07 (GMT)
commit56513d9df75de92bb96f24e9d0e5e30dce54d065 (patch)
tree61ddcb5cf21d4981174719be3d09c99d958817f9 /src/H5B2.c
parent94ea835bbb50d5b5215c7e02515cd0f603985c92 (diff)
downloadhdf5-56513d9df75de92bb96f24e9d0e5e30dce54d065.zip
hdf5-56513d9df75de92bb96f24e9d0e5e30dce54d065.tar.gz
hdf5-56513d9df75de92bb96f24e9d0e5e30dce54d065.tar.bz2
Remove dead code behind #ifdef OLD_WAY (#3163)
Diffstat (limited to 'src/H5B2.c')
-rw-r--r--src/H5B2.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/H5B2.c b/src/H5B2.c
index a51de6c..093f8ee 100644
--- a/src/H5B2.c
+++ b/src/H5B2.c
@@ -1317,16 +1317,12 @@ H5B2_modify(H5B2_t *bt2, void *udata, H5B2_modify_t op, void *op_data)
if (H5AC_unprotect(hdr->f, H5AC_BT2_LEAF, curr_node_ptr.addr, leaf, H5AC__NO_FLAGS_SET) < 0)
HGOTO_ERROR(H5E_BTREE, H5E_CANTUNPROTECT, FAIL, "unable to release B-tree node")
- /* Note: don't push error on stack, leave that to next higher level,
- * since many times the B-tree is searched in order to determine
- * if an object exists in the B-tree or not. -QAK
- */
-#ifdef OLD_WAY
- HGOTO_ERROR(H5E_BTREE, H5E_NOTFOUND, FAIL, "key not found in leaf node")
-#else /* OLD_WAY */
+ /* Note: don't push error on stack, leave that to next higher level,
+ * since many times the B-tree is searched in order to determine
+ * if an object exists in the B-tree or not.
+ */
HGOTO_DONE(FAIL)
-#endif /* OLD_WAY */
- } /* end if */
+ }
else {
/* Make callback for current record */
if ((op)(H5B2_LEAF_NREC(leaf, hdr, idx), op_data, &changed) < 0) {