Skip to content

Commit

Permalink
Cleaned up commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Farinetti committed Apr 4, 2022
1 parent fdbe6a1 commit 4973237
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,24 +214,14 @@ void Sim::step() {
// apply rules to the cell
std::vector<Operation> results = applyRules(row, col);

// for (Operation op : results) {
// std::cout << "C: " << op << std::endl;
// }

// add any resultant operations to this step's operations list
std::copy(results.begin(), results.end(), std::back_inserter(operations));
// operations.insert(operations.end(), results.begin(), results.end());
}
}

// for (Operation op : operations) {
// std::cout << "F: " << op << std::endl;
// }

// apply any operations for the step to the grid
for (Operation operation : operations) {
grid.set(operation.row, operation.col, operation.state);
// std::cout << "set grid(" << operation.row << ", " << operation.col << ") to " << grid.getString(operation.row, operation.col) << std::endl;
grid.set(operation.row, operation.col, operation.state);
}
}

Expand Down

0 comments on commit 4973237

Please sign in to comment.