Skip to content

Commit

Permalink
Cleanup unused statements (HDFGroup#3553)
Browse files Browse the repository at this point in the history
Removed unnecessary assert statements and noise comments.
  • Loading branch information
bmribler committed Sep 29, 2023
1 parent 5f27bc8 commit 394768d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/H5Cimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 394768d

Please sign in to comment.