🔥 removed uneeded constructor

This commit is contained in:
EntireTwix 2021-07-13 20:25:58 -07:00
parent e112468395
commit 8935b0cb4d
2 changed files with 0 additions and 2 deletions

View file

@ -11,5 +11,4 @@ struct Transaction
Transaction() noexcept;
Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount, time_t time) noexcept;
Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount) noexcept;
};

View file

@ -2,4 +2,3 @@
Transaction::Transaction() noexcept {};
Transaction::Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount, time_t time_val) noexcept : from(from_str), to(to_str), amount(amount), time(time_val) {}
Transaction::Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount) noexcept : from(from_str), to(to_str), amount(amount) { time = std::time(NULL); }