From bde031f393f6c6c99108b4e73095965387a00148 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Mon, 4 Mar 2024 11:33:09 +0100 Subject: [PATCH] Deleting useless fields and enum. --- include/gui/gui_data.hpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/include/gui/gui_data.hpp b/include/gui/gui_data.hpp index 7ed06cf..ff3e2cf 100644 --- a/include/gui/gui_data.hpp +++ b/include/gui/gui_data.hpp @@ -12,28 +12,12 @@ using namespace std::string_view_literals; namespace gui { - enum class characChanged { - None, - Adresse, - Endurance, - Chance, - Habilete - }; - class GuiData final { private: friend class Gui; character::CharacterSheet &billy; - std::pair base{ characChanged::None, 0 }; - - std::pair carac{ characChanged::None, 0 }; - - std::pair materiel{ characChanged::None, 0 }; - - std::pair additional{ characChanged::None, 0 }; - public: static constexpr std::array classes{ "Guerrier"sv, @@ -47,14 +31,6 @@ namespace gui { explicit GuiData(character::CharacterSheet &billy) noexcept: billy(billy) { SPDLOG_DEBUG("Creating GUI Data"); } ~GuiData() noexcept = default; - - [[nodiscard]] const std::pair &get_base() const { return base; } - - [[nodiscard]] const std::pair &get_carac() const { return carac; } - - [[nodiscard]] const std::pair &get_materiel() const { return materiel; } - - [[nodiscard]] const std::pair &get_additional() const { return additional; } }; }