From 5d0ae8ad47371cd8789d2f7bf905958a2273a8dd Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 8 Aug 2009 22:09:53 +0000 Subject: (svn r17125) -Cleanup: remove an unused variable --- src/ai/ai_instance.cpp | 3 --- src/ai/ai_instance.hpp | 2 -- 2 files changed, 5 deletions(-) (limited to 'src/ai') diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index c79ea0d34..f5a78e269 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -80,8 +80,6 @@ #undef DEFINE_SCRIPT_FILES -/* static */ AIInstance *AIInstance::current_instance = NULL; - AIStorage::~AIStorage() { /* Free our pointers */ @@ -108,7 +106,6 @@ AIInstance::AIInstance(AIInfo *info) : { /* Set the instance already, so we can use AIObject::Set commands */ Company::Get(_current_company)->ai_instance = this; - AIInstance::current_instance = this; this->controller = new AIController(); this->storage = new AIStorage(); diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp index 4c9cb69a5..41653dba1 100644 --- a/src/ai/ai_instance.hpp +++ b/src/ai/ai_instance.hpp @@ -114,8 +114,6 @@ public: static void LoadEmpty(); private: - static class AIInstance *current_instance; //!< Static current AIInstance, so we can register AIs. - class AIController *controller; class AIStorage *storage; class Squirrel *engine; -- cgit v1.2.3-70-g09d2