Skip to content

Commit fd8828f

Browse files
authored
Remove redundant calls to invalidState() (#382)
fixes #377
1 parent 6194029 commit fd8828f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/fmi2Functions.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,6 @@ fmi2Status fmi2SetReal (fmi2Component c, const fmi2ValueReference vr[], size_t n
405405

406406
ASSERT_STATE(SetReal)
407407

408-
if (invalidState(S, "fmi2SetReal", MASK_fmi2SetReal))
409-
return fmi2Error;
410-
411408
if (nvr > 0 && nullPointer(S, "fmi2SetReal", "vr[]", vr))
412409
return fmi2Error;
413410

@@ -668,9 +665,6 @@ fmi2Status fmi2DoStep(fmi2Component c, fmi2Real currentCommunicationPoint,
668665
/* Inquire slave status */
669666
static fmi2Status getStatus(char* fname, fmi2Component c, const fmi2StatusKind s) {
670667

671-
if (invalidState(S, fname, MASK_fmi2GetStatus)) // all get status have the same MASK_fmi2GetStatus
672-
return fmi2Error;
673-
674668
switch(s) {
675669
case fmi2DoStepStatus: logError(S,
676670
"%s: Can be called with fmi2DoStepStatus when fmi2DoStep returned fmi2Pending."

0 commit comments

Comments
 (0)