Skip to content

Commit

Permalink
- Removed some unused constants from Builtin.mo
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7517 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 20, 2010
1 parent 7e61783 commit 32f1ce5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Compiler/FrontEnd/Builtin.mo
Expand Up @@ -1143,12 +1143,6 @@ protected constant SCode.Class booleanType=SCode.CLASS("Boolean",false,false,SCo
protected constant DAE.Var timeVar=DAE.TYPES_VAR("time",
DAE.ATTR(false,false,SCode.RO(),SCode.VAR(),Absyn.BIDIR(),Absyn.UNSPECIFIED()),false,DAE.T_REAL_DEFAULT,DAE.UNBOUND(),NONE()) "- The `time\' variable" ;

protected
replaceable type Type_a subtypeof Any;
constant DAE.Type nil2real=(DAE.T_FUNCTION({},DAE.T_REAL_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());

protected constant DAE.Type nil2bool=(DAE.T_FUNCTION({},DAE.T_REAL_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());

protected constant DAE.Type stringIntInt2string=(
DAE.T_FUNCTION(
{
Expand Down Expand Up @@ -2722,17 +2716,9 @@ protected constant DAE.Type array9dimbool2array1dimint=(
T_BOOL_ARRAY_9_DEFAULT)},
T_INT_ARRAY_1_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());


// MetaModelica extension. KS
protected constant DAE.Type typeBoxedAny = (DAE.T_BOXED((DAE.T_NOTYPE(),NONE())),NONE());
protected constant DAE.Type typeA = (DAE.T_POLYMORPHIC("Type_A"),NONE());

protected constant DAE.Type int2boxed = (
DAE.T_FUNCTION({("index",DAE.T_INTEGER_DEFAULT)},DAE.T_BOXED_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());

protected constant DAE.Type void2string =(
DAE.T_FUNCTION({},(DAE.T_STRING({}),NONE()),DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());

protected constant DAE.Type string2string=(
DAE.T_FUNCTION({("x",DAE.T_STRING_DEFAULT)},DAE.T_STRING_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());

Expand All @@ -2759,13 +2745,6 @@ protected constant DAE.Type realrealreal2real=(
("y",DAE.T_REAL_DEFAULT),
("z",DAE.T_REAL_DEFAULT)
},DAE.T_REAL_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());
protected constant DAE.Type intintint2int =(
DAE.T_FUNCTION(
{
("x",DAE.T_INTEGER_DEFAULT),
("y",DAE.T_INTEGER_DEFAULT),
("z",DAE.T_INTEGER_DEFAULT)
},DAE.T_INTEGER_DEFAULT,DAE.FUNCTION_ATTRIBUTES_DEFAULT),NONE());

public function variableIsBuiltin "Returns true if cref is a builtin variable.
Currently only 'time' is a builtin variable.
Expand Down

0 comments on commit 32f1ce5

Please sign in to comment.