Skip to content

Commit

Permalink
Remove obsolete flags (#11876)
Browse files Browse the repository at this point in the history
- Remove `--latency` and `--bandwidth`, which belonged to the modpar
  library removed in [r20379](https://trac.openmodelica.org/OpenModelica/changeset/20379).
- Remove internal `TRANSLATE_DAE_STRING` flag that's no longer set
  anywhere.
  • Loading branch information
perost committed Jan 25, 2024
1 parent c19b34d commit 072daff
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 161 deletions.
6 changes: 0 additions & 6 deletions OMCompiler/Compiler/BackEnd/BackendUtil.mo
Expand Up @@ -36,7 +36,6 @@ encapsulated package BackendUtil

protected

import Flags;
import List;
import System;
import DAE;
Expand Down Expand Up @@ -77,11 +76,6 @@ function modelicaStringToCStr " this replaces symbols that are illegal in C to l
algorithm
res_str := matchcontinue(str,changeDerCall)
local String s;
case(s,false) // BoschRexroth specifics
equation
false = Flags.getConfigBool(Flags.TRANSLATE_DAE_STRING);
then
s;
case(_,false)
equation
res_str = "$"+ modelicaStringToCStr1(str, replaceStringPatterns);
Expand Down
12 changes: 0 additions & 12 deletions OMCompiler/Compiler/Util/Config.mo
Expand Up @@ -84,18 +84,6 @@ algorithm
end match;
end noProcWork;

public function latency
output Real outReal;
algorithm
outReal := Flags.getConfigReal(Flags.LATENCY);
end latency;

public function bandwidth
output Real outReal;
algorithm
outReal := Flags.getConfigReal(Flags.BANDWIDTH);
end bandwidth;

public function simulationCg
output Boolean outBoolean;
algorithm
Expand Down

0 comments on commit 072daff

Please sign in to comment.