Remove the event_ignore stuff since it was never really used
--HG-- extra : convert_revision : ef5f3492e8232d08af7e1eae64ba96c79ca14b6f
This commit is contained in:
parent
8c1c68a31e
commit
a41f17b40e
|
@ -52,8 +52,6 @@ namespace Stats {
|
|||
|
||||
Tick EventStart = ULL(0x7fffffffffffffff);
|
||||
|
||||
ObjectMatch event_ignore;
|
||||
|
||||
#if USE_MYSQL
|
||||
class InsertEvent
|
||||
{
|
||||
|
|
|
@ -45,8 +45,6 @@ void __event(const std::string &stat);
|
|||
bool MySqlConnected();
|
||||
#endif
|
||||
|
||||
bool ignoreEvent(const std::string &name);
|
||||
|
||||
inline void
|
||||
recordEvent(const std::string &stat)
|
||||
{
|
||||
|
|
|
@ -56,10 +56,6 @@ using namespace std;
|
|||
//
|
||||
SimObject::SimObjectList SimObject::simObjectList;
|
||||
|
||||
namespace Stats {
|
||||
extern ObjectMatch event_ignore;
|
||||
}
|
||||
|
||||
//
|
||||
// SimObject constructor: used to maintain static simObjectList
|
||||
//
|
||||
|
@ -70,7 +66,6 @@ SimObject::SimObject(Params *p)
|
|||
doDebugBreak = false;
|
||||
#endif
|
||||
|
||||
doRecordEvent = !Stats::event_ignore.match(name());
|
||||
simObjectList.push_back(this);
|
||||
state = Running;
|
||||
}
|
||||
|
@ -86,7 +81,6 @@ SimObject::SimObject(const string &_name)
|
|||
doDebugBreak = false;
|
||||
#endif
|
||||
|
||||
doRecordEvent = !Stats::event_ignore.match(name());
|
||||
simObjectList.push_back(this);
|
||||
state = Running;
|
||||
}
|
||||
|
@ -245,8 +239,7 @@ debugObjectBreak(const char *objs)
|
|||
void
|
||||
SimObject::recordEvent(const std::string &stat)
|
||||
{
|
||||
if (doRecordEvent)
|
||||
Stats::recordEvent(stat);
|
||||
Stats::recordEvent(stat);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
|
|
|
@ -136,7 +136,6 @@ class SimObject : public Serializable, protected StartupCallback
|
|||
#endif
|
||||
|
||||
public:
|
||||
bool doRecordEvent;
|
||||
void recordEvent(const std::string &stat);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue