Remove empty C4AulScript::Clear()

The virtual call was only made from ~C4AulScript, and the deriving classes
already called their own Clear() from their own destructors.
liquid_container
Günther Brammer 2016-01-03 03:40:54 +01:00
parent b21acff0c7
commit d3890f8c99
3 changed files with 0 additions and 12 deletions

View File

@ -50,8 +50,6 @@ C4AulScript::C4AulScript()
C4AulScript::~C4AulScript()
{
// clear
Clear();
// unreg
Unreg();
}
@ -66,12 +64,6 @@ void C4AulScript::Unreg()
Engine = NULL;
}
void C4AulScript::Clear()
{
}
void C4AulScript::Reg2List(C4AulScriptEngine *pEngine)
{
// already regged? (def reloaded)
@ -147,8 +139,6 @@ void C4AulScriptEngine::Clear()
else Child0->Unreg();
// clear own stuff
GlobalPropList._getPropList()->Clear();
// clear inherited
C4AulScript::Clear();
// reset values
warnCnt = errCnt = lineCnt = 0;
// resetting name lists will reset all data lists, too

View File

@ -125,7 +125,6 @@ class C4AulScript
public:
C4AulScript(); // constructor
virtual ~C4AulScript(); // destructor
virtual void Clear(); // remove script, byte code and children
void Reg2List(C4AulScriptEngine *pEngine); // reg to linked list
void Unreg(); // remove from list
virtual bool Delete() { return true; } // allow deletion on pure class

View File

@ -44,7 +44,6 @@ C4ScriptHost::~C4ScriptHost()
void C4ScriptHost::Clear()
{
C4AulScript::Clear();
ComponentHost.Clear();
Script.Clear();
LocalNamed.Reset();