From de14e2983a184f00712ba0a13d1556fdad2c6d83 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Mon, 14 Jun 2021 11:04:06 -0700 Subject: [PATCH] removed last commits console out --- src/bank.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/bank.cpp b/src/bank.cpp index f07d5fc..241495f 100644 --- a/src/bank.cpp +++ b/src/bank.cpp @@ -85,7 +85,6 @@ int_fast8_t Bank::AdminDelUser(const std::string &name, const std::string &attem int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name, uint32_t amount, const std::string &attempt) { - std::cout << "recieved request\n"; //cant send money to self, from self or amount is 0 if (a_name == b_name || !amount) { @@ -118,7 +117,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name state = true; } } - std::cout << "a\n"; })) { if (state) @@ -128,7 +126,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name b.balance += amount; })) { - std::cout << "c\n"; if constexpr (max_log_size) { Transaction temp(a_name, b_name, amount); @@ -144,7 +141,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name } else { - std::cout << "d\n"; //attempt to refund if A exist users.modify_if(a_name, [amount](User &a) { a.balance += amount; @@ -159,10 +155,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name } else { - { - std::cout << "b\n"; - return ErrorResponse::UserNotFound; - } + return ErrorResponse::UserNotFound; } } }