diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2019-06-10 08:45:44 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2019-06-10 08:47:55 +0300 |
commit | fceec22e76927745f74b9853db9c4975d2680bf7 (patch) | |
tree | a2ed2492d69e50bad8497ebf0119acdb36dafe34 /plugins/Dbx_sqlite/src/dbcontacts.cpp | |
parent | 9e9d67e4c600277cc073b706a8d7a158e71a2b2e (diff) |
dbx_sqlite: dropped first/last event cache (broken by reimplementation)
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbcontacts.cpp')
-rwxr-xr-x[-rw-r--r--] | plugins/Dbx_sqlite/src/dbcontacts.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/plugins/Dbx_sqlite/src/dbcontacts.cpp b/plugins/Dbx_sqlite/src/dbcontacts.cpp index e2bef8664a..0cf3a85d57 100644..100755 --- a/plugins/Dbx_sqlite/src/dbcontacts.cpp +++ b/plugins/Dbx_sqlite/src/dbcontacts.cpp @@ -153,30 +153,14 @@ void DBCachedContact::AddEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread) m_count = HasCount() ? m_count + 1 : 1; - if (m_firstTimestamp > timestamp) { - m_first = hDbEvent; - m_firstTimestamp = timestamp; - } if (unread && m_unreadTimestamp > timestamp) { m_unread = hDbEvent; m_unreadTimestamp = timestamp; } - if (m_lastTimestamp <= timestamp) { - m_last = hDbEvent; - m_lastTimestamp = timestamp; - } } void DBCachedContact::EditEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread) { - if (m_first = hDbEvent && m_firstTimestamp != timestamp) { - m_first = 0; - m_firstTimestamp = 0; - } - else if (m_firstTimestamp > timestamp) { - m_first = hDbEvent; - m_firstTimestamp = timestamp; - } if (m_unread = hDbEvent && (!unread || m_unreadTimestamp != timestamp)) { m_unread = 0; m_unreadTimestamp = 0; @@ -185,32 +169,16 @@ void DBCachedContact::EditEvent(MEVENT hDbEvent, uint32_t timestamp, bool unread m_unread = hDbEvent; m_unreadTimestamp = timestamp; } - if (m_last = hDbEvent && m_lastTimestamp != timestamp) { - m_last = 0; - m_lastTimestamp = 0; - } - else if (m_lastTimestamp <= timestamp) { - m_last = hDbEvent; - m_lastTimestamp = timestamp; - } } void DBCachedContact::DeleteEvent(MEVENT hDbEvent) { if (m_count > 0) m_count--; - if (m_first == hDbEvent) { - m_first = 0; - m_firstTimestamp = 0; - } if (m_unread == hDbEvent) { m_unread = 0; m_unreadTimestamp = 0; } - if (m_last == hDbEvent) { - m_last = 0; - m_lastTimestamp = 0; - } } void DBCachedContact::MarkRead(MEVENT hDbEvent) |