Skip to content

Commit

Permalink
- Removed unused CevalScript functions
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8067 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 3, 2011
1 parent 03b4373 commit f9b8da9
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions Compiler/Script/CevalScript.mo
Expand Up @@ -2038,7 +2038,6 @@ algorithm
init_filename = filenameprefix +& "_init.txt"; //a hack ? should be at one place somewhere
//win1 = getWithinStatement(classname);
s3 = extractNoCleanCommand(noClean);
//makefilename = generateMakefilename(filenameprefix);

Debug.fprintln("dynload", "buildModel: about to compile model " +& filenameprefix +& ", " +& file_dir);
compileModel(filenameprefix, libs, file_dir, s3, method_str);
Expand Down Expand Up @@ -3493,7 +3492,6 @@ algorithm
//(cache,init_filename,starttime_r,stoptime_r,interval_r,tolerance_r,method_str,options_str,outputFormat_str)
//= calculateSimulationSettings(cache,env, exp, st, msg, cname_str);
//SimCode.generateInitData(indexed_dlow_1, classname, filenameprefix, init_filename, starttime_r, stoptime_r, interval_r,tolerance_r,method_str,options_str,outputFormat_str);
//makefilename = generateMakefilename(filenameprefix);
Debug.fprintln("dynload", "buildModel: about to compile model " +& filenameprefix +& ", " +& file_dir);
compileModel(filenameprefix, libs, file_dir, "", method_str);
Debug.fprintln("dynload", "buildModel: Compiling done.");
Expand All @@ -3515,46 +3513,6 @@ algorithm
end match;
end buildModelBeast;

public function generateMakefileHeader
output String hdr;
algorithm
hdr := matchcontinue ()
local
String omhome,header,ccompiler,cxxcompiler,linker,exeext,dllext,cflags,ldflags,senddatalibs;
case()
equation
ccompiler = System.getCCompiler();
cxxcompiler = System.getCXXCompiler();
linker = System.getLinker();
exeext = System.getExeExt();
dllext = System.getDllExt();
omhome = Settings.getInstallationDirectoryPath();
omhome = System.trim(omhome, "\""); //Remove any quotation marks from omhome.
cflags = System.getCFlags();
ldflags = System.getLDFlags();
senddatalibs = System.getSendDataLibs();
header = stringAppendList({
"#Makefile generated by OpenModelica\n\n",
"CC=",ccompiler,"\n",
"CXX=",cxxcompiler,"\n",
"LINK=",linker,"\n",
"EXEEXT=",exeext,"\n",
"DLLEXT=",dllext,"\n",
"CFLAGS= -I\"",omhome,"/include/omc\" ", cflags ,"\n",
"LDFLAGS= -L\"",omhome,"/lib/omc\" ", ldflags ,"\n",
"SENDDATALIBS=", senddatalibs ,"\n"
});
then header;
end matchcontinue;
end generateMakefileHeader;

protected function generateMakefilename "function generateMakefilename"
input String filenameprefix;
output String makefilename;
algorithm
makefilename := stringAppendList({filenameprefix,".makefile"});
end generateMakefilename;

protected function generateFunctionName
"@author adrpo:
generate the function name from a path."
Expand Down

0 comments on commit f9b8da9

Please sign in to comment.