Removes referece count from audit logs

This commit is contained in:
Felipe Zimmerle
2019-01-22 12:06:13 -03:00
parent 4b94fabef9
commit 5ebfa5eacb
3 changed files with 2 additions and 17 deletions

View File

@@ -183,18 +183,6 @@ class AuditLog {
std::string m_path2;
std::string m_storage_dir;
void refCountIncrease() {
m_refereceCount++;
}
bool refCountDecreaseAndCheck() {
m_refereceCount--;
if (m_refereceCount == 0) {
delete this;
return true;
}
return false;
}
AuditLogFormat m_format;
protected:
@@ -215,7 +203,6 @@ class AuditLog {
std::string m_relevant;
audit_log::writer::Writer *m_writer;
int m_refereceCount;
};