summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-25 22:02:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-25 22:02:05 +0300
commit35a613633a2bec681e2cb8e7dac583b16465efef (patch)
tree440904c52a3dee40f18cf1f5e9d3699140c3e6f3 /plugins/Dbx_mdbx
parent01e48461e3ddf45c2e9065276ff4b4c5f59ae77b (diff)
string constants with word dbchecker fixed
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/dbevents.cpp32
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.h6
2 files changed, 0 insertions, 38 deletions
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;
-}
diff --git a/plugins/Dbx_mdbx/src/dbintf.h b/plugins/Dbx_mdbx/src/dbintf.h
index 66515934b3..ac29a30115 100644
--- a/plugins/Dbx_mdbx/src/dbintf.h
+++ b/plugins/Dbx_mdbx/src/dbintf.h
@@ -209,12 +209,6 @@ protected:
public:
MICryptoEngine *m_crypto;
- ////////////////////////////////////////////////////////////////////////////
- // checker
-
- int CheckEvents1();
- int CheckEvents2();
-
protected:
MDBX_env *m_env;
CMDBX_txn_ro m_txn_ro;