From d949783828e1ccc2890fedcd9ffd5e8cc4db3558 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 13 Jul 2021 18:30:04 -0700 Subject: [PATCH] :racehorse::fire: inlined ValidUsername & removed GetChangedState() --- include/bank.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/bank.h b/include/bank.h index 72a25de..1b035d9 100644 --- a/include/bank.h +++ b/include/bank.h @@ -10,8 +10,6 @@ #include "change_flag.h" #endif -bool ValidUsername(const std::string &name) noexcept; - class Bank { #if MULTI_THREADED @@ -45,10 +43,6 @@ public: size_t NumOfLogs() const noexcept; size_t SumBal() const noexcept; -#if CONSERVATIVE_DISK_SAVE - bool GetChangeState() const noexcept; -#endif - BankResponse GetBal(const std::string &name) const noexcept; #if MAX_LOG_SIZE > 0 BankResponse GetLogs(const std::string &name) noexcept; @@ -64,6 +58,7 @@ public: BankResponse AddUser(const std::string &name, uint32_t init_bal, std::string &&init_pass) noexcept; BankResponse DelUser(const std::string &name) noexcept; + void DelSelf(const std::string &name) noexcept; const char *Save(); void Load();