summaryrefslogtreecommitdiffstats
path: root/src/H5HG.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/H5HG.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/H5HG.c')
-rw-r--r--src/H5HG.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index c6c3c8d..599da94 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -169,10 +169,6 @@ H5HG__create(H5F_t *f, size_t size)
* align the pointer, but this might not be the case.
*/
n = (size_t)H5HG_ALIGN(p - heap->chunk) - (size_t)(p - heap->chunk);
-#ifdef OLD_WAY
- /* Don't bother zeroing out the rest of the info in the heap -QAK */
- HDmemset(p, 0, n);
-#endif /* OLD_WAY */
p += n;
/* The freespace object */
@@ -184,10 +180,6 @@ H5HG__create(H5F_t *f, size_t size)
UINT16ENCODE(p, 0); /*reference count*/
UINT32ENCODE(p, 0); /*reserved*/
H5F_ENCODE_LENGTH(f, p, heap->obj[0].size);
-#ifdef OLD_WAY
- /* Don't bother zeroing out the rest of the info in the heap -QAK */
- HDmemset(p, 0, (size_t)((heap->chunk + heap->size) - p));
-#endif /* OLD_WAY */
/* Add this heap to the beginning of the CWFS list */
if (H5F_cwfs_add(f, heap) < 0)
@@ -537,14 +529,8 @@ H5HG_insert(H5F_t *f, size_t size, const void *obj, H5HG_t *hobj /*out*/)
HGOTO_ERROR(H5E_HEAP, H5E_CANTALLOC, FAIL, "unable to allocate global heap object")
/* Copy data into the heap */
- if (size > 0) {
+ if (size > 0)
H5MM_memcpy(heap->obj[idx].begin + H5HG_SIZEOF_OBJHDR(f), obj, size);
-#ifdef OLD_WAY
- /* Don't bother zeroing out the rest of the info in the heap -QAK */
- HDmemset(heap->obj[idx].begin + H5HG_SIZEOF_OBJHDR(f) + size, 0,
- need - (H5HG_SIZEOF_OBJHDR(f) + size));
-#endif /* OLD_WAY */
- } /* end if */
heap_flags |= H5AC__DIRTIED_FLAG;
/* Return value */