Skip to content

Commit

Permalink
revert extra defensive checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rpreen committed Nov 4, 2023
1 parent c44a856 commit 02645fa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions xcsf/clset.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ static void
clset_pset_roulette(const struct XCSF *xcsf, struct Clist **del,
struct Clist **delprev)
{
if (xcsf->pset.list == NULL) {
printf("clset_pset_roulette(): error pset is empty\n");
exit(EXIT_FAILURE);
}
const double avg_fit = clset_total_fit(&xcsf->pset) / xcsf->pset.num;
double total_vote = 0;
struct Clist *iter = xcsf->pset.list;
Expand Down Expand Up @@ -359,10 +355,6 @@ clset_pset_enforce_limit(struct XCSF *xcsf)
void
clset_match(struct XCSF *xcsf, const double *x, const bool cover)
{
if (xcsf->pset.list == NULL) {
printf("clset_match(): error pset is empty\n");
exit(EXIT_FAILURE);
}
#ifdef PARALLEL_MATCH
// prepare for parallel processing of matching conditions
struct Clist *blist[xcsf->pset.size];
Expand Down Expand Up @@ -456,10 +448,6 @@ void
clset_update(struct XCSF *xcsf, struct Set *set, const double *x,
const double *y, const bool cur)
{
if (set->list == NULL) {
printf("clset_update(): error set is empty\n");
exit(EXIT_FAILURE);
}
#ifdef PARALLEL_UPDATE
struct Clist *blist[set->size];
struct Clist *iter = set->list;
Expand Down

0 comments on commit 02645fa

Please sign in to comment.