From f08b62e1a0b9719bb03fd0db89353f69f0680def Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 3 Mar 2012 22:58:34 +0100 Subject: Removed the last direct call to global script function The ScriptAction of the TriggerArea (which can be created by mana.trigger_create) was still using a named global function for its callback. Now it also uses a reference to a script function. Since it was the last occurrence of a call to a global script function, I've also removed the Script::prepare(std::string) overload. Reviewed-by: Erik Schilling Mantis-issue: 299 --- src/scripting/luascript.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/scripting/luascript.h') diff --git a/src/scripting/luascript.h b/src/scripting/luascript.h index ecd249a..6ea44ba 100644 --- a/src/scripting/luascript.h +++ b/src/scripting/luascript.h @@ -46,8 +46,6 @@ class LuaScript : public Script void prepare(Ref function); - void prepare(const std::string &); - void push(int); void push(const std::string &); @@ -86,7 +84,6 @@ class LuaScript : public Script private: lua_State *mState; int nbArgs; - std::string mCurFunction; static Ref mQuestReplyCallback; static Ref mPostReplyCallback; -- cgit