From 8935b0cb4da2e98eda65eafb21b7b62407d0fcce Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 13 Jul 2021 20:25:58 -0700 Subject: [PATCH] :fire: removed uneeded constructor --- include/transaction.h | 1 - src/transaction.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/include/transaction.h b/include/transaction.h index ee407e0..c4c5805 100644 --- a/include/transaction.h +++ b/include/transaction.h @@ -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; }; diff --git a/src/transaction.cpp b/src/transaction.cpp index 1d95895..c0c1456 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -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); } \ No newline at end of file