Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 3775ade

Browse files
committed
small cleanup
1 parent 60e1286 commit 3775ade

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Compiler/BackEnd/BackendEquation.mo

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ algorithm
148148
try
149149
BackendDAE.WHEN_STMTS(whenStmtLst={BackendDAE.ASSIGN(left=DAE.CREF(componentRef = outComponentRef), right=outExp)}) := inWhenEquation;
150150
else
151-
print("getWhenEQuationExpr failed\n");
151+
Error.addInternalError("BackendEquation.getWhenEquationExpr failed\n", sourceInfo());
152152
end try;
153153
end getWhenEquationExpr;
154154

@@ -894,15 +894,7 @@ algorithm
894894
case (BackendDAE.ASSIGN(left = e1, right = e2, source = source)::rest)
895895
equation
896896
tp = Expression.typeof(e2);
897-
//e1 = Expression.makeCrefExp(cr, tp);
898897
(e1, extArg) = inFunc(e1, inTypeA);
899-
/*
900-
if Expression.isCref(e1) then
901-
DAE.CREF(cr1, _) = e1;
902-
else
903-
cr1=cr;
904-
end if;
905-
*/
906898
(e2, extArg) = inFunc(e2, extArg);
907899
(outWhenOps, extArg) = traverseExpsOfWhenOps(rest, inFunc, extArg, BackendDAE.ASSIGN(e1, e2, source)::inAccum);
908900
then (outWhenOps, extArg);
@@ -1035,7 +1027,6 @@ algorithm
10351027
case (BackendDAE.ASSIGN(left = e1, right = e2)::rest)
10361028
equation
10371029
tp = Expression.typeof(e2);
1038-
//e1 = Expression.makeCrefExp(cr, tp);
10391030
if inCont then
10401031
(_, b, extArg) = inFunc(e1, inTypeA);
10411032
end if;

0 commit comments

Comments
 (0)