mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
🐎🔥 inlined ValidUsername & removed GetChangedState()
This commit is contained in:
parent
0ed5d5342b
commit
d949783828
1 changed files with 1 additions and 6 deletions
|
|
@ -10,8 +10,6 @@
|
||||||
#include "change_flag.h"
|
#include "change_flag.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool ValidUsername(const std::string &name) noexcept;
|
|
||||||
|
|
||||||
class Bank
|
class Bank
|
||||||
{
|
{
|
||||||
#if MULTI_THREADED
|
#if MULTI_THREADED
|
||||||
|
|
@ -45,10 +43,6 @@ public:
|
||||||
size_t NumOfLogs() const noexcept;
|
size_t NumOfLogs() const noexcept;
|
||||||
size_t SumBal() const noexcept;
|
size_t SumBal() const noexcept;
|
||||||
|
|
||||||
#if CONSERVATIVE_DISK_SAVE
|
|
||||||
bool GetChangeState() const noexcept;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BankResponse GetBal(const std::string &name) const noexcept;
|
BankResponse GetBal(const std::string &name) const noexcept;
|
||||||
#if MAX_LOG_SIZE > 0
|
#if MAX_LOG_SIZE > 0
|
||||||
BankResponse GetLogs(const std::string &name) noexcept;
|
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 AddUser(const std::string &name, uint32_t init_bal, std::string &&init_pass) noexcept;
|
||||||
BankResponse DelUser(const std::string &name) noexcept;
|
BankResponse DelUser(const std::string &name) noexcept;
|
||||||
|
void DelSelf(const std::string &name) noexcept;
|
||||||
|
|
||||||
const char *Save();
|
const char *Save();
|
||||||
void Load();
|
void Load();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue