sim: Remove the unused SimObject::regFormulas method
Simulation objects normally register derived statistics, presumably what regFormulas originally was meant for, in regStats(). This patch removes regRegformulas since there is no need to have a separate method call to register formulas.
This commit is contained in:
parent
03ff612054
commit
2f397f314b
4 changed files with 1 additions and 9 deletions
|
@ -597,7 +597,6 @@ class SimObject(object):
|
||||||
void loadState(Checkpoint *cp);
|
void loadState(Checkpoint *cp);
|
||||||
void initState();
|
void initState();
|
||||||
void regStats();
|
void regStats();
|
||||||
void regFormulas();
|
|
||||||
void resetStats();
|
void resetStats();
|
||||||
void startup();
|
void startup();
|
||||||
|
|
||||||
|
@ -707,7 +706,7 @@ class SimObject(object):
|
||||||
# If the attribute exists on the C++ object, transparently
|
# If the attribute exists on the C++ object, transparently
|
||||||
# forward the reference there. This is typically used for
|
# forward the reference there. This is typically used for
|
||||||
# SWIG-wrapped methods such as init(), regStats(),
|
# SWIG-wrapped methods such as init(), regStats(),
|
||||||
# regFormulas(), resetStats(), startup(), drain(), and
|
# resetStats(), startup(), drain(), and
|
||||||
# resume().
|
# resume().
|
||||||
if self._ccObject and hasattr(self._ccObject, attr):
|
if self._ccObject and hasattr(self._ccObject, attr):
|
||||||
return getattr(self._ccObject, attr)
|
return getattr(self._ccObject, attr)
|
||||||
|
|
|
@ -110,7 +110,6 @@ def instantiate(ckpt_dir=None):
|
||||||
|
|
||||||
# Do a third pass to initialize statistics
|
# Do a third pass to initialize statistics
|
||||||
for obj in root.descendants(): obj.regStats()
|
for obj in root.descendants(): obj.regStats()
|
||||||
for obj in root.descendants(): obj.regFormulas()
|
|
||||||
|
|
||||||
# We're done registering statistics. Enable the stats package now.
|
# We're done registering statistics. Enable the stats package now.
|
||||||
stats.enable()
|
stats.enable()
|
||||||
|
|
|
@ -104,11 +104,6 @@ SimObject::regStats()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
SimObject::regFormulas()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SimObject::resetStats()
|
SimObject::resetStats()
|
||||||
{
|
{
|
||||||
|
|
|
@ -126,7 +126,6 @@ class SimObject : public EventManager, public Serializable
|
||||||
|
|
||||||
// register statistics for this object
|
// register statistics for this object
|
||||||
virtual void regStats();
|
virtual void regStats();
|
||||||
virtual void regFormulas();
|
|
||||||
virtual void resetStats();
|
virtual void resetStats();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue