🔥 removed legacy constructor

This commit is contained in:
EntireTwix 2021-07-12 22:03:12 -07:00
parent 0f3a89b770
commit 0954a76b6a
2 changed files with 1 additions and 9 deletions

View file

@ -5,13 +5,12 @@
struct User struct User
{ {
uint32_t balance = 0; uint32_t balance;
XXH64_hash_t password; XXH64_hash_t password;
#if MAX_LOG_SIZE > 0 #if MAX_LOG_SIZE > 0
Log log; Log log;
#endif #endif
User(std::string &&init_pass) noexcept;
User(uint32_t init_bal, std::string &&init_pass) noexcept; User(uint32_t init_bal, std::string &&init_pass) noexcept;
User(uint32_t init_bal, XXH64_hash_t init_pass) noexcept; User(uint32_t init_bal, XXH64_hash_t init_pass) noexcept;
#if MAX_LOG_SIZE > 0 #if MAX_LOG_SIZE > 0

View file

@ -1,12 +1,5 @@
#include "user.h" #include "user.h"
/**
* @brief User constructor
*
* @param init_pass initial password
*/
User::User(std::string &&init_pass) noexcept : password(xxHashStringGen{}(init_pass)) {}
/** /**
* @brief User Constructor for admins * @brief User Constructor for admins
* *