remove connectAll() and connect() code since it isn't used anymore. (The python does it all)
--HG-- extra : convert_revision : e16a1ff59d4522703b155c2e68379a3072e8f47f
This commit is contained in:
parent
c68f7feaa8
commit
17141a1be9
|
@ -91,11 +91,6 @@ SimObject::SimObject(const string &_name)
|
|||
state = Running;
|
||||
}
|
||||
|
||||
void
|
||||
SimObject::connect()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
SimObject::init()
|
||||
{
|
||||
|
@ -159,21 +154,6 @@ SimObject::regAllStats()
|
|||
Stats::registerResetCallback(&StatResetCB);
|
||||
}
|
||||
|
||||
//
|
||||
// static function: call connect() on all SimObjects.
|
||||
//
|
||||
void
|
||||
SimObject::connectAll()
|
||||
{
|
||||
SimObjectList::iterator i = simObjectList.begin();
|
||||
SimObjectList::iterator end = simObjectList.end();
|
||||
|
||||
for (; i != end; ++i) {
|
||||
SimObject *obj = *i;
|
||||
obj->connect();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// static function: call init() on all SimObjects.
|
||||
//
|
||||
|
|
|
@ -101,9 +101,7 @@ class SimObject : public Serializable, protected StartupCallback
|
|||
// initialization pass of all objects.
|
||||
// Gets invoked after construction, before unserialize.
|
||||
virtual void init();
|
||||
virtual void connect();
|
||||
static void initAll();
|
||||
static void connectAll();
|
||||
|
||||
// register statistics for this object
|
||||
virtual void regStats();
|
||||
|
|
Loading…
Reference in a new issue