Skip to content

Commit

Permalink
Remove the CodegenCSharp generator.
Browse files Browse the repository at this point in the history
  - This generator is marked as obsolete.
  • Loading branch information
mahge committed Nov 19, 2020
1 parent a2d38d0 commit ba37f90
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 3,136 deletions.
1 change: 0 additions & 1 deletion OMCompiler/Compiler/.cmake/meta_modelica_source_list.cmake
Expand Up @@ -399,7 +399,6 @@ set(OMC_MM_BACKEND_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenCppHpcom.mo
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenCppHpcomOld.mo
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenCppInit.mo
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenCSharp.mo
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenFMU.mo
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenFMU1.mo
${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenFMU2.mo
Expand Down
3 changes: 0 additions & 3 deletions OMCompiler/Compiler/.cmake/template_compilation.cmake
Expand Up @@ -141,9 +141,6 @@ omc_add_template_target(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenFMU2.
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenC.tpl
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenUtil.tpl)

omc_add_template_target(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenCSharp.tpl
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Template/SimCodeTV.mo)

omc_add_template_target(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/Template/CodegenCppCommon.tpl
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Template/SimCodeTV.mo)

Expand Down
5 changes: 0 additions & 5 deletions OMCompiler/Compiler/SimCode/SimCodeMain.mo
Expand Up @@ -69,7 +69,6 @@ import CodegenOMSICpp;
import CodegenFMUCppHpcomOld;
import CodegenAdevs;
import CodegenSparseFMI;
import CodegenCSharp;
import CodegenCppOld;
import CodegenCppHpcomOld;
import CodegenOMSIC;
Expand Down Expand Up @@ -509,10 +508,6 @@ algorithm
list<tuple<Boolean,list<String>>> res;
list<String> strs, tmp, matches;

case "CSharp" equation
Tpl.tplNoret(CodegenCSharp.translateModel, simCode);
then ();

case "Cpp"
algorithm
callTargetTemplatesCPP(simCode);
Expand Down
19 changes: 0 additions & 19 deletions OMCompiler/Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -14489,25 +14489,6 @@ algorithm
end match;
end codegenExpSanityCheck;

public function isModelTooBigForCSharpInOneFile
"Used by C# template to determine if the generated code should be split into several files
to make Visual Studio responsive when the file is opened (C# compiler is OK,
but VS does not scale well for big C# files)."
input SimCode.SimCode simCode;
output Boolean outIsTooBig;
algorithm
outIsTooBig := match(simCode)
local
Integer numAlgVars;

case (SimCode.SIMCODE(modelInfo = SimCode.MODELINFO(varInfo = SimCode.VARINFO(numAlgVars = numAlgVars))))
equation
outIsTooBig = numAlgVars > 1000;
then outIsTooBig;

end match;
end isModelTooBigForCSharpInOneFile;

public function absoluteClockIdxForBaseClock
input Integer baseClockIdx; // one-based
input list<SimCode.ClockedPartition> allBaseClockPartitions;
Expand Down

0 comments on commit ba37f90

Please sign in to comment.