diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-19 15:20:53 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-19 15:20:53 +0000 |
commit | cf751286442fa9b4b4843ae1091625e6a6c7ba2d (patch) | |
tree | c5c76f649b8065018d4d1189c84a70b7ef090bc3 /plugins/Dbx_mdb/src/dbintf.cpp | |
parent | a98fbb55e2701f6ba4348e90bdb110df667bc4a5 (diff) |
dbx_lmdb: fixed writing settings; CryptoProvider selector; correct transactions revert
git-svn-id: http://svn.miranda-ng.org/main/trunk@16310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbintf.cpp')
-rw-r--r-- | plugins/Dbx_mdb/src/dbintf.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/plugins/Dbx_mdb/src/dbintf.cpp b/plugins/Dbx_mdb/src/dbintf.cpp index b7c0c81572..cb044d622f 100644 --- a/plugins/Dbx_mdb/src/dbintf.cpp +++ b/plugins/Dbx_mdb/src/dbintf.cpp @@ -23,18 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
-#define CMP_UINT32(A,B) if (A != B) return (A < B) ? -1 : 1;
-
-static int MDB_CompareEvents(const MDB_val *v1, const MDB_val *v2)
-{
- DBEventSortingKey *k1 = static_cast<DBEventSortingKey*>(v1->mv_data);
- DBEventSortingKey *k2 = static_cast<DBEventSortingKey*>(v2->mv_data);
- CMP_UINT32(k1->dwContactId, k2->dwContactId);
- CMP_UINT32(k1->ts, k2->ts);
- CMP_UINT32(k1->dwEventId, k2->dwEventId);
- return 0;
-}
-
static int ModCompare(const ModuleName *mn1, const ModuleName *mn2)
{
return strcmp(mn1->name, mn2->name);
@@ -110,7 +98,6 @@ int CDbxMdb::Load(bool bSkipInit) mdb_open(trnlck, "eventsrt", MDB_CREATE | MDB_INTEGERKEY, &m_dbEventsSort);
mdb_open(trnlck, "settings", MDB_CREATE, &m_dbSettings);
- //mdb_set_compare(trnlck, m_dbEventsSort, MDB_CompareEvents);
DWORD keyVal = 1;
MDB_val key = { sizeof(DWORD), &keyVal }, data;
|