summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_cargolist.hpp.sq
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-12 22:25:53 +0000
committerrubidium <rubidium@openttd.org>2009-02-12 22:25:53 +0000
commitdea3490b2fb3ed9bf67eafd45b0a524a7ea15750 (patch)
tree3e221a4c240d5e3816d46d5d1e22664047944955 /src/ai/api/ai_cargolist.hpp.sq
parent3314ef39d21f8a2c0ffbe2c39d0d12ca73b041a2 (diff)
downloadopenttd-dea3490b2fb3ed9bf67eafd45b0a524a7ea15750.tar.xz
(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope for static functions and limit exposure of the internal function GetClassName.
Diffstat (limited to 'src/ai/api/ai_cargolist.hpp.sq')
-rw-r--r--src/ai/api/ai_cargolist.hpp.sq6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ai/api/ai_cargolist.hpp.sq b/src/ai/api/ai_cargolist.hpp.sq
index 379afed9b..6dd47ed1f 100644
--- a/src/ai/api/ai_cargolist.hpp.sq
+++ b/src/ai/api/ai_cargolist.hpp.sq
@@ -17,8 +17,6 @@ void SQAICargoList_Register(Squirrel *engine) {
SQAICargoList.PreRegister(engine, "AIAbstractList");
SQAICargoList.AddConstructor<void (AICargoList::*)(), 1>(engine, "x");
- SQAICargoList.DefSQStaticMethod(engine, &AICargoList::GetClassName, "GetClassName", 1, "x");
-
SQAICargoList.PostRegister(engine);
}
@@ -36,8 +34,6 @@ void SQAICargoList_IndustryAccepting_Register(Squirrel *engine) {
SQAICargoList_IndustryAccepting.PreRegister(engine, "AIAbstractList");
SQAICargoList_IndustryAccepting.AddConstructor<void (AICargoList_IndustryAccepting::*)(IndustryID industry_id), 2>(engine, "xi");
- SQAICargoList_IndustryAccepting.DefSQStaticMethod(engine, &AICargoList_IndustryAccepting::GetClassName, "GetClassName", 1, "x");
-
SQAICargoList_IndustryAccepting.PostRegister(engine);
}
@@ -55,7 +51,5 @@ void SQAICargoList_IndustryProducing_Register(Squirrel *engine) {
SQAICargoList_IndustryProducing.PreRegister(engine, "AIAbstractList");
SQAICargoList_IndustryProducing.AddConstructor<void (AICargoList_IndustryProducing::*)(IndustryID industry_id), 2>(engine, "xi");
- SQAICargoList_IndustryProducing.DefSQStaticMethod(engine, &AICargoList_IndustryProducing::GetClassName, "GetClassName", 1, "x");
-
SQAICargoList_IndustryProducing.PostRegister(engine);
}