summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-05 18:18:24 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-06 20:14:34 (GMT)
commitfcd9e78f8c271bcb180d8847ff9d68b3152b7725 (patch)
treef35522742df7d8c0bebe6e2bb960778f741555e8 /src
parenteaeede0120a9bfefac2080f1af5ce3c062f0f0c6 (diff)
downloadhdf5-fcd9e78f8c271bcb180d8847ff9d68b3152b7725.zip
hdf5-fcd9e78f8c271bcb180d8847ff9d68b3152b7725.tar.gz
hdf5-fcd9e78f8c271bcb180d8847ff9d68b3152b7725.tar.bz2
Delete unused code.
Diffstat (limited to 'src')
-rw-r--r--src/H5FDvfd_swmr.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index fa4c2c8..5565d93 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -678,20 +678,10 @@ H5FD_vfd_swmr_read(H5FD_t *_file, H5FD_mem_t type,
HDassert(file && file->pub.cls);
HDassert(buf);
-#if 0 /* JRM */
- /* index should be loaded only at file open, and at end of tick -- JRM */
-
- /* Try loading and decoding the header and index in the metadata file */
- if(H5FD__vfd_swmr_load_hdr_and_idx(_file, FALSE) < 0)
- HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, \
- "unable to load/decode the md file header/index")
-#endif /* JRM */
-
index = file->md_index.entries;
num_entries = (int)file->md_index.num_entries;
fs_page_size = file->md_header.fs_page_size;
-#if 1 /* JRM */
/* Try finding the addr from the index */
cmp = -1;
lo = 0;
@@ -735,32 +725,6 @@ H5FD_vfd_swmr_read(H5FD_t *_file, H5FD_mem_t type,
target_page, size);
}
#endif /* JRM */
-#else /* JRM */
- {
- target_page = (addr / fs_page_size);
- cmp = -1;
- my_idx = 0;
-
- HDassert(target_page * fs_page_size <= addr);
- HDassert(addr < (target_page + 1) * fs_page_size);
-
- while ( ( cmp == -1 ) && ( my_idx < num_entries ) ) {
-
- HDassert( ( my_idx == 0 ) ||
- ( index[my_idx-1].hdf5_page_offset <
- index[my_idx].hdf5_page_offset ) );
-
- if ( index[my_idx].hdf5_page_offset == (uint64_t)target_page ) {
-
- cmp = 0;
-
- } else {
-
- my_idx++;
- }
- }
- }
-#endif /* JRM */
/* Found in index, read from the metadata file */
#if 0 /* JRM */