Skip to content

Commit

Permalink
- delete unneeded code
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5759 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 30, 2010
1 parent 0f5c22e commit 9b5a9f3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Compiler/Exp.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1700,18 +1700,7 @@ algorithm
DAE.CALL(path,exps_1,b,b2,t,b3);

// simplify arrays
/* {-e[1],-e[2],-e[3]} = -{e[1],e[2],e[3]}
case DAE.ARRAY( t, b,exps as ((DAE.UNARY(DAE.UMINUS(_),_) :: _)))
equation
(f::exps_1) = Util.listMap(exps, expStripLastSubs); //Strip last subscripts
bls = Util.listMap1(exps_1, expEqual,f);
true = Util.boolAndList(bls);
expl_1 = Util.listMap(exps,abs);
expl_1 = Util.listMap(expl_1,simplify1);
e = DAE.ARRAY(t,b,expl_1);
then
DAE.UNARY(DAE.UMINUS_ARR(t),e);
*/ case DAE.ARRAY( t, b,exps_1)
case DAE.ARRAY( t, b,exps_1)
equation
exps_1 = Util.listMap(exps_1,simplify1);
then
Expand Down

0 comments on commit 9b5a9f3

Please sign in to comment.