diff options
author | bmribler <39579120+bmribler@users.noreply.github.com> | 2023-09-29 14:05:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 14:05:36 (GMT) |
commit | 1fd82abe5868b36f0a4d5390f2651c31e83467cf (patch) | |
tree | 39463b8bf7edad4af9efa96a46b1914a9ab55f09 | |
parent | 5f27bc8688332360dabff4f140a6777adfdf9bc4 (diff) | |
download | hdf5-1fd82abe5868b36f0a4d5390f2651c31e83467cf.zip hdf5-1fd82abe5868b36f0a4d5390f2651c31e83467cf.tar.gz hdf5-1fd82abe5868b36f0a4d5390f2651c31e83467cf.tar.bz2 |
Cleanup unused statements (#3553) (#3617)
Removed unnecessary assert statements and noise comments.
-rw-r--r-- | src/H5Cimage.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/H5Cimage.c b/src/H5Cimage.c index f461365..b969054 100644 --- a/src/H5Cimage.c +++ b/src/H5Cimage.c @@ -1096,8 +1096,6 @@ H5C_set_cache_image_config(const H5F_t *f, H5C_t *cache_ptr, H5C_cache_image_ctl /* Sanity checks */ assert(f); - assert(f->shared); - assert(f->shared->cache == f->shared->cache); /* Check arguments */ if (cache_ptr == NULL) @@ -1117,7 +1115,7 @@ H5C_set_cache_image_config(const H5F_t *f, H5C_t *cache_ptr, H5C_cache_image_ctl cache_ptr->image_ctl = default_image_ctl; assert(!(cache_ptr->image_ctl.generate_image)); - } /* end if */ + } else { #endif /* H5_HAVE_PARALLEL */ /* A cache image can only be generated if the file is opened read / write @@ -1139,9 +1137,9 @@ H5C_set_cache_image_config(const H5F_t *f, H5C_t *cache_ptr, H5C_cache_image_ctl cache_ptr->image_ctl = default_image_ctl; assert(!(cache_ptr->image_ctl.generate_image)); - } /* end else */ + } #ifdef H5_HAVE_PARALLEL - } /* end else */ + } #endif /* H5_HAVE_PARALLEL */ done: |