From 0954a76b6a01ad28780ce593a29d2b7ebbce78c5 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Mon, 12 Jul 2021 22:03:12 -0700 Subject: [PATCH] :fire: removed legacy constructor --- include/user.h | 3 +-- src/user.cpp | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/include/user.h b/include/user.h index ee6fe37..2e587d7 100644 --- a/include/user.h +++ b/include/user.h @@ -5,13 +5,12 @@ struct User { - uint32_t balance = 0; + uint32_t balance; XXH64_hash_t password; #if MAX_LOG_SIZE > 0 Log log; #endif - User(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; #if MAX_LOG_SIZE > 0 diff --git a/src/user.cpp b/src/user.cpp index 85251a5..1abfc5e 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -1,12 +1,5 @@ #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 *