Skip to content

Commit c2f7a35

Browse files
committed
Commented out dead code in the Model class
1 parent 8f2a932 commit c2f7a35

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

Simulator/Core/Model.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515

1616
#include "Model.h"
17-
// #include "FixedLayout.h"
1817
#include "Connections.h"
1918
#include "Factory.h"
2019
#include "ParameterManager.h"
@@ -108,15 +107,15 @@ void Model::setupSim()
108107

109108
// Note: This method was previously used for debugging, but it is now dead code left behind.
110109
/// Log this simulation step.
111-
void Model::logSimStep() const
112-
{
113-
FixedLayout *fixedLayout = dynamic_cast<FixedLayout *>(layout_.get());
114-
if (fixedLayout == nullptr) {
115-
return;
116-
}
117-
118-
fixedLayout->printLayout();
119-
}
110+
// void Model::logSimStep() const
111+
// {
112+
// FixedLayout *fixedLayout = dynamic_cast<FixedLayout *>(layout_.get());
113+
// if (fixedLayout == nullptr) {
114+
// return;
115+
// }
116+
117+
// fixedLayout->printLayout();
118+
// }
120119

121120
/// Update the simulation history of every epoch.
122121
void Model::updateHistory()

Simulator/Core/Model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Model {
8282
protected:
8383
// Note: This method was previously used for debugging, but it is now dead code left behind.
8484
/// Prints debug information about the current state of the network.
85-
void logSimStep() const;
85+
// void logSimStep() const;
8686

8787
/// Copy GPU Edge data to CPU.
8888
virtual void copyGPUtoCPU() = 0;

0 commit comments

Comments
 (0)