Skip to content

Commit

Permalink
Remove commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Aug 18, 2023
1 parent e770f8a commit 0e7d4a2
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/nrniv/nrncore_write/callbacks/nrncore_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ int nrnthread_dat2_mech(int tid,
int sz = nrn_prop_param_size_[type];

// As the NEURON data is now transposed then for now always create a new
// copy in the format expected by CoreNEURON -- TODO make sure this is
// freed, then later TODO remove the need for this entirely
// copy in the format expected by CoreNEURON.
// TODO remove the need for this entirely
if (!copy) {
data = new double[n * sz];
}
Expand All @@ -363,13 +363,10 @@ int nrnthread_dat2_mech(int tid,
}
}

// double* data1;
if (isart) { // data may not be contiguous
// data1 = contiguous_art_data(ml, n, sz); // delete after use
nodeindices = NULL;
} else {
nodeindices = ml->nodeindices; // allocated below if copy
// data1 = ml->_data[0]; // do not delete after use
}
if (copy) {
if (!isart) {
Expand All @@ -378,15 +375,6 @@ int nrnthread_dat2_mech(int tid,
nodeindices[i] = ml->nodeindices[i];
}
}
// int nn = n * sz;
// for (int i = 0; i < nn; ++i) {
// data[i] = data1[i];
// }
// if (isart) {
// delete[] data1;
// }
// } else {
// data = data1;
}

sz = bbcore_dparam_size[type]; // nrn_prop_dparam_size off by 1 if cvode_ieq.
Expand Down

0 comments on commit 0e7d4a2

Please sign in to comment.