Skip to content

Commit

Permalink
Remove dead code branch in helper_mix_trim - add assertion that code …
Browse files Browse the repository at this point in the history
…is dead.
  • Loading branch information
jamesturner246 committed Apr 20, 2021
1 parent 572b42a commit de0355f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/helper_mix_trim.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* helper_mix_trim.c -- Mixed IA/AA and Mixed Trimmed IA/AA functions.
*
* Copyright 2020 James Paul Turner.
* Copyright 2020-2021 James Paul Turner.
*
* This file is part of the Arpra library.
*
Expand Down Expand Up @@ -59,9 +59,7 @@ void arpra_helper_mix_trim (arpra_range *y, mpfi_srcptr ia_range)
}

mpfr_sub(&(y->radius), &(y->radius), temp1, MPFR_RNDU);
if (mpfr_sgn(&(y->radius)) < 0) {
mpfr_set_zero(&(y->radius), 1);
}
//assert(!(mpfr_sgn(&(y->radius)) < 0));
}

// Clear vars.
Expand Down

0 comments on commit de0355f

Please sign in to comment.