made save function absolute

This commit is contained in:
EntireTwix 2021-07-05 18:49:13 -07:00
parent 94fce9cd1f
commit 597a710e2b

View file

@ -250,10 +250,6 @@ BankResponse Bank::DelUser(const std::string &name) noexcept
} }
void Bank::Save() void Bank::Save()
{ {
#if CONSERVATIVE_DISK_SAVE
if (GetChangeState())
{
#endif
Json::Value temp; Json::Value temp;
//loading info into json temp //loading info into json temp
@ -284,8 +280,6 @@ void Bank::Save()
save_flag = true; save_flag = true;
#endif #endif
} }
#endif
}
//NOT THREAD SAFE, BY NO MEANS SHOULD THIS BE CALLED WHILE RECEIEVING REQUESTS //NOT THREAD SAFE, BY NO MEANS SHOULD THIS BE CALLED WHILE RECEIEVING REQUESTS
void Bank::Load() void Bank::Load()