Skip to content

Commit 1cd66bf

Browse files
authored
Todo cleanup (#125)
1 parent 97a0ff9 commit 1cd66bf

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

include/events.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ void print_map(const std::map<unsigned int, std::vector<unsigned int>> & map);
232232

233233
extern const Stock_event STOCK_SPLIT_EVENT;
234234

235-
/// @todo Understand this constexpr lambda
236235
inline const unsigned int sumOfAllEventsProbability = []() {
237236
unsigned int sum = 0;
238237
for (const auto & event : all_stock_events) {

src/stock.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ void Stock::load(const std::string & playerName, int i) {
6464
// get the first line, which is category
6565
fin >> *this; // use operator>> to load the Stock object
6666
fin.close();
67-
// @todo Do not hardcode this limit, use a constant
68-
// STOCK_PRICE_LIMIT instead
69-
assert(price <= 1000 && "Price exceed the limit");
67+
assert(price <= STOCK_PRICE_LIMIT && "Price exceed the limit");
7068
std::cout << "done" << std::endl;
7169
}
7270

0 commit comments

Comments
 (0)