Skip to content

Commit

Permalink
simplify some more code
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro-elsweijer committed Jan 30, 2024
1 parent 060634a commit d33076c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/t8_forest/t8_forest.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,7 @@ t8_forest_is_initialized (t8_forest_t forest)
int
t8_forest_is_committed (const t8_forest_t forest)
{
if (!(forest != NULL && t8_refcount_is_active (&forest->rc) && forest->committed)) {
return 0;
}
#ifdef T8_ENABLE_DEBUG
/* TODO: check more conditions that must always hold after commit */
if (0) {
return 0;
}
#endif
return 1;
return forest != NULL && t8_refcount_is_active (&forest->rc) && forest->committed;
}

static void
Expand Down

0 comments on commit d33076c

Please sign in to comment.