From 97515abfb2859e289df9d65d7106f35159749131 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 7 Nov 2024 15:27:21 +0100 Subject: no more singleton systems --- src/crepe/system/ScriptSystem.cpp | 8 -------- src/crepe/system/ScriptSystem.h | 5 ----- src/crepe/system/System.h | 14 +++----------- src/example/script.cpp | 2 +- 4 files changed, 4 insertions(+), 25 deletions(-) diff --git a/src/crepe/system/ScriptSystem.cpp b/src/crepe/system/ScriptSystem.cpp index f1fae4d..f2673e7 100644 --- a/src/crepe/system/ScriptSystem.cpp +++ b/src/crepe/system/ScriptSystem.cpp @@ -12,14 +12,6 @@ using namespace std; using namespace crepe; -ScriptSystem::ScriptSystem() { dbg_trace(); } -ScriptSystem::~ScriptSystem() { dbg_trace(); } - -ScriptSystem & ScriptSystem::get_instance() { - static ScriptSystem instance; - return instance; -} - void ScriptSystem::update() { using namespace std; dbg_trace(); diff --git a/src/crepe/system/ScriptSystem.h b/src/crepe/system/ScriptSystem.h index 32e793c..4fa6141 100644 --- a/src/crepe/system/ScriptSystem.h +++ b/src/crepe/system/ScriptSystem.h @@ -10,13 +10,8 @@ class Script; class ScriptSystem : public System { public: - static ScriptSystem & get_instance(); void update(); -private: - ScriptSystem(); - ~ScriptSystem(); - private: // TODO: to forward_list std::forward_list