Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 7fd4fbc

Browse files
adeas31OpenModelica-Hudson
authored andcommitted
Allow only the valid FMI versions. ticket:5146
Belonging to [master]: - #2693
1 parent 3f4c043 commit 7fd4fbc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Compiler/Util/FMI.mo

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ public function checkFMIVersion "Checks if the FMU version is supported."
225225
output Boolean success;
226226
algorithm
227227
success := match (inFMIVersion)
228-
case ("1") then true;
229228
case ("1.0") then true;
230-
case ("2") then true;
231229
case ("2.0") then true;
232230
else false;
233231
end match;
@@ -238,7 +236,6 @@ public function isFMIVersion10 "Checks if the FMI version is 1.0."
238236
output Boolean success;
239237
algorithm
240238
success := match (inFMUVersion)
241-
case ("1") then true;
242239
case ("1.0") then true;
243240
else false;
244241
end match;
@@ -249,7 +246,6 @@ public function isFMIVersion20 "Checks if the FMI version is 2.0."
249246
output Boolean success;
250247
algorithm
251248
success := match (inFMUVersion)
252-
case ("2") then true;
253249
case ("2.0") then true;
254250
else false;
255251
end match;
@@ -273,13 +269,9 @@ public function canExportFMU
273269
output Boolean success;
274270
algorithm
275271
success := match (inFMUVersion, inFMIType)
276-
case ("1", "me") then true;
277272
case ("1.0", "me") then true;
278-
case ("2", "me") then true;
279273
case ("2.0", "me") then true;
280-
case ("2", "cs") then true;
281274
case ("2.0", "cs") then true;
282-
case ("2", "me_cs") then true;
283275
case ("2.0", "me_cs") then true;
284276
else false;
285277
end match;

0 commit comments

Comments
 (0)