From 1fd82abe5868b36f0a4d5390f2651c31e83467cf Mon Sep 17 00:00:00 2001 From: bmribler <39579120+bmribler@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:05:36 -0400 Subject: Cleanup unused statements (#3553) (#3617) Removed unnecessary assert statements and noise comments. --- src/H5Cimage.c | 8 +++----- 1 file 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: -- cgit v0.12