Commit adf57441 authored by Ronan's avatar Ronan

fix(MainDb): remove cleanEvents functions => not easy to implement for events life

parent 5b0cfaa1
......@@ -854,25 +854,6 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
return storageId == -1;
}
void MainDb::cleanEvents (FilterMask mask) {
L_D();
if (!isConnected()) {
lWarning() << "Unable to clean events. Not connected.";
return;
}
string query = "DELETE FROM event" +
buildSqlEventFilter({ ConferenceCallFilter, ConferenceChatMessageFilter, ConferenceInfoFilter }, mask);
L_BEGIN_LOG_EXCEPTION
soci::session *session = d->dbSession.getBackendSession<soci::session>();
*session << query;
L_END_LOG_EXCEPTION
}
int MainDb::getEventsCount (FilterMask mask) const {
L_D();
......@@ -1416,8 +1397,6 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
return false;
}
void MainDb::cleanEvents (FilterMask) {}
int MainDb::getEventsCount (FilterMask) const {
return 0;
}
......
......@@ -54,7 +54,6 @@ public:
bool addEvent (const std::shared_ptr<EventLog> &eventLog);
bool deleteEvent (const std::shared_ptr<EventLog> &eventLog);
void cleanEvents (FilterMask mask = NoFilter);
int getEventsCount (FilterMask mask = NoFilter) const;
// ---------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment