Skip to content

Commit

Permalink
Code cleanup in the adevs backend
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13944 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
smiz committed Nov 18, 2012
1 parent 2027acf commit d6f21de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Compiler/Template/CodegenAdevs.tpl
Expand Up @@ -156,8 +156,6 @@ case SIMCODE(modelInfo = MODELINFO(varInfo = vi as VARINFO(__))) then
bool check_for_new_events();
bool initial() const { return atInit; }

// Junk for the OpenModelica c runtime
adevs_omc_data* data;
void calc_vars(const double* q = NULL, bool doReinit = false);

protected:
Expand Down Expand Up @@ -269,8 +267,7 @@ case SIMCODE(modelInfo = MODELINFO(varInfo = vi as VARINFO(__))) then
epsilon(eventHys),
helpVars(NULL),
helpVars_saved(NULL),
zc(NULL),
data(new adevs_omc_data())
zc(NULL)
{
timeValue = 0.0;
if (numHelpVars() > 0)
Expand All @@ -284,7 +281,6 @@ case SIMCODE(modelInfo = MODELINFO(varInfo = vi as VARINFO(__))) then

<%lastIdentOfPath(modelInfo.name)%>::~<%lastIdentOfPath(modelInfo.name)%>()
{
delete data;
if (helpVars != NULL) delete [] helpVars;
if (helpVars_saved != NULL) delete [] helpVars_saved;
if (zc != NULL) delete [] zc;
Expand Down

0 comments on commit d6f21de

Please sign in to comment.