Skip to content

Commit

Permalink
- Removed Interactive list(cr) functions as their result differs from…
Browse files Browse the repository at this point in the history
… CevalScript

  * TODO: Make sure OMEdit list() command handles strings correctly


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9212 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 31, 2011
1 parent e287609 commit 67aa41e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Compiler/Script/Interactive.mo
Expand Up @@ -2452,24 +2452,6 @@ algorithm
then
(resstr,st);

// list(cr) added here to speed up model editor. Also exists in Ceval
case (istmts, st as SYMBOLTABLE(ast = p))
equation
matchApiFunction(istmts, "list");
{Absyn.CREF(componentRef = cr)} = getApiFunctionArgs(istmts);
resstr = listClass(cr, p);
resstr = stringAppendList({"\"",resstr,"\""});
then
(resstr,st);

case (istmts, st as SYMBOLTABLE(ast = p))
equation
matchApiFunction(istmts, "list");
{Absyn.CREF(componentRef = cr)} = getApiFunctionArgs(istmts);
failure(resstr = listClass(cr, p));
then
("",st);

case (istmts, st as SYMBOLTABLE(ast = p))
equation
matchApiFunction(istmts, "setOption");
Expand Down

0 comments on commit 67aa41e

Please sign in to comment.