Skip to content

Commit

Permalink
- Remove unused ceval call with empty cache and env
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13898 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 15, 2012
1 parent 4658793 commit 4bb3ae6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Compiler/FrontEnd/InstSection.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4754,9 +4754,8 @@ algorithm

/* Tuple with rhs constant */
case (cache,env,ih,pre,Absyn.TUPLE(expressions = expl),e_1,eprop,_,source,_,impl,_,_)
equation
equation
(cache, e_1 as DAE.TUPLE(PR = expl_1), eprop) = Ceval.cevalIfConstant(cache, env, e_1, eprop, impl, info);
(_,_,_) = Ceval.ceval(Env.emptyCache(),Env.emptyEnv, e_1, false,NONE(), Ceval.MSG(info));
(cache,expl_2,cprops,attrs,_) = Static.elabExpCrefNoEvalList(cache,env, expl, impl,NONE(),false,pre,info, Error.getNumErrorMessages());
Static.checkAssignmentToInputs(expl, attrs, env, info);
(cache,expl_2) = PrefixUtil.prefixExpList(cache, env, ih, expl_2, pre);
Expand Down

0 comments on commit 4bb3ae6

Please sign in to comment.