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/script.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/scripting/script.h') diff --git a/src/scripting/script.h b/src/scripting/script.h index bbfc7691..2fa3a0bf 100644 --- a/src/scripting/script.h +++ b/src/scripting/script.h @@ -101,12 +101,6 @@ class Script */ virtual void prepare(Ref function) = 0; - /** - * Prepares a call to the given function. - * Only one function can be prepared at once. - */ - virtual void prepare(const std::string &name) = 0; - /** * Pushes an integer argument for the function being prepared. */ -- cgit v1.2.3-60-g2f50