read_first_xtc returns the same value that is stored in the output
argument, so one branch of the old code was unreachable.
Noticed this while implementing TNG support, but fixed it here since
it is technically unrelated.
Change-Id: I52387ad1628944edca12703557857bf748e7bb86
#include <ctype.h>
#include <math.h>
+#include <assert.h>
#include "sysstuff.h"
#include "typedefs.h"
if (read_first_xtc(fio, &fr->natoms, &fr->step, &fr->time, fr->box, &fr->x,
&fr->prec, &bOK) == 0)
{
- if (bOK)
- {
- gmx_fatal(FARGS, "No XTC!\n");
- }
- else
- {
- fr->not_ok = DATA_NOT_OK;
- }
+ assert(!bOK);
+ fr->not_ok = DATA_NOT_OK;
}
if (fr->not_ok)
{