From 6a575d79f6b0f5421421a05349c2c63e1d9ce7bd Mon Sep 17 00:00:00 2001 From: Quentin Bazin Date: Sun, 8 Mar 2020 18:01:29 +0100 Subject: [PATCH] [LuaRecipeLoader] Useless private field removed. --- server/source/lua/LuaMod.hpp | 2 +- server/source/lua/loader/LuaRecipeLoader.hpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server/source/lua/LuaMod.hpp b/server/source/lua/LuaMod.hpp index bed360cd..37c2ab73 100644 --- a/server/source/lua/LuaMod.hpp +++ b/server/source/lua/LuaMod.hpp @@ -55,7 +55,7 @@ class LuaMod { LuaBlockLoader m_blockLoader{*this}; LuaItemLoader m_itemLoader{*this}; - LuaRecipeLoader m_recipeLoader{*this}; + LuaRecipeLoader m_recipeLoader; LuaBiomeLoader m_biomeLoader{*this}; LuaDimensionLoader m_dimensionLoader{*this}; }; diff --git a/server/source/lua/loader/LuaRecipeLoader.hpp b/server/source/lua/loader/LuaRecipeLoader.hpp index e83b27c4..bc31d18c 100644 --- a/server/source/lua/loader/LuaRecipeLoader.hpp +++ b/server/source/lua/loader/LuaRecipeLoader.hpp @@ -33,13 +33,10 @@ class LuaMod; class LuaRecipeLoader { public: - LuaRecipeLoader(LuaMod &mod) : m_mod(mod) {} + LuaRecipeLoader() = default; void loadCraftingRecipe(const sol::table &table) const; void loadSmeltingRecipe(const sol::table &table) const; - - private: - LuaMod &m_mod; }; #endif // LUARECIPELOADER_HPP_