From 35a613633a2bec681e2cb8e7dac583b16465efef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Mar 2018 22:02:05 +0300 Subject: string constants with word dbchecker fixed --- plugins/Dbx_mdbx/src/dbevents.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'plugins/Dbx_mdbx/src/dbevents.cpp') diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index 0262cf89ec..baf75a04fe 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -463,35 +463,3 @@ STDMETHODIMP_(MEVENT) CDbxMDBX::FindPrevEvent(MCONTACT contactID, MEVENT hDbEven cc->t_tsLast = pKey->ts; return cc->t_evLast = (pKey->hContact == contactID) ? pKey->hEvent : 0; } - -/////////////////////////////////////////////////////////////////////////////// -// checker - -int CDbxMDBX::CheckEvents1() -{ -/* txn_ptr_ro trnlck(m_txn_ro); - cursor_ptr_ro cursor(m_curEvents); - - uint32_t eventID = 0; - MDBX_val key = { &eventID, sizeof(eventID) }, data; - - while (mdbx_cursor_get(cursor, &key, &data, MDBX_NEXT) == MDBX_SUCCESS) { - const DBEvent *dbe = (const DBEvent*)data.iov_base; - - DBEventSortingKey lookupkey = { dbe->contactID, eventID, dbe->timestamp }; - MDBX_val key2 = { &lookupkey, sizeof(lookupkey) }, data2; - if (!mdbx_get(m_txn_ro, m_dbEventsSort, &key, nullptr)) - continue; - - txn_ptr trnlck(StartTran()); - if (mdbx_del(txn, m_dbEvents, &key, nullptr) == MDBX_SUCCESS) - txn.commit(); - } - */ - return ERROR_NO_MORE_ITEMS; -} - -int CDbxMDBX::CheckEvents2() -{ - return ERROR_NO_MORE_ITEMS; -} -- cgit v1.2.3