Skip to content

Commit

Permalink
Merge pull request #906 from DLR-AMR/enhancement-remove_unused_stuff
Browse files Browse the repository at this point in the history
Clean up some stuff
  • Loading branch information
lukasdreyer authored Jan 30, 2024
2 parents de68bfe + d33076c commit 7573222
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions src/t8_forest/t8_forest.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,13 @@ t8_forest_init (t8_forest_t *pforest)
int
t8_forest_is_initialized (t8_forest_t forest)
{
if (!(forest != NULL && t8_refcount_is_active (&forest->rc) && !forest->committed)) {
return 0;
}

#ifdef T8_ENABLE_DEBUG
/* TODO: check conditions that must always hold after init and before commit */
if (0) {
return 0;
}
#endif

return 1;
return forest != NULL && t8_refcount_is_active (&forest->rc) && !forest->committed;
}

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 7573222

Please sign in to comment.