diff --git a/doc/UsersGuide/interface.mos b/doc/UsersGuide/interface.mos index 1397652ec48..af15a09dad1 100644 --- a/doc/UsersGuide/interface.mos +++ b/doc/UsersGuide/interface.mos @@ -1,5 +1,5 @@ loadString(" -function trim +function trim \" Trim leading whitespace\" input String s; output String o; protected @@ -9,7 +9,7 @@ algorithm o := a[1]; end trim; -function reSTInterface +function reSTInterface \"Generate re-structured text documentation for MetaModelica function\" input OpenModelica.Scripting.TypeName cl; output String out; protected @@ -35,17 +35,11 @@ algorithm end if; end reSTInterface; -function isDeprecatedVersion +function isDeprecatedVersion \"Return true if version of type name is deprecated.\" input OpenModelica.Scripting.TypeName cl; output Boolean deprecated; -protected - String version = OpenModelica.Scripting.getVersion(cl); algorithm - if stringEq(version, \"Deprecated\") then - deprecated := true; - else - deprecated := false; - end if; + deprecated := stringEq(OpenModelica.Scripting.getVersion(cl), \"Deprecated\"); end isDeprecatedVersion; "); getErrorString();