mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
fix(MainDb): remove cleanEvents functions => not easy to implement for events life
This commit is contained in:
parent
5b0cfaa137
commit
adf574413b
2 changed files with 0 additions and 22 deletions
|
|
@ -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;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue