diff options
author | George Hazan <ghazan@miranda.im> | 2020-11-16 20:17:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-11-16 20:17:27 +0300 |
commit | 7bb7189d67da6f916bbc9f4076d1319cd03f65d2 (patch) | |
tree | b12a5ada678447adcbe9ed82faafa5aa69794c81 /plugins/Dbx_mdbx/src/stdafx.h | |
parent | efe255d24291ca83efa9caee3696a8f1451b3b11 (diff) |
Dbx_mdbx: global cursors replaced with mdbx_cursor_bind() and temporary cursors
Diffstat (limited to 'plugins/Dbx_mdbx/src/stdafx.h')
-rw-r--r-- | plugins/Dbx_mdbx/src/stdafx.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/Dbx_mdbx/src/stdafx.h b/plugins/Dbx_mdbx/src/stdafx.h index a8918e9b80..0dcad889ed 100644 --- a/plugins/Dbx_mdbx/src/stdafx.h +++ b/plugins/Dbx_mdbx/src/stdafx.h @@ -139,20 +139,6 @@ public: __forceinline operator MDBX_cursor*() const { return m_cursor; }
};
-class cursor_ptr_ro
-{
- MDBX_cursor *m_cursor;
-public:
- __forceinline cursor_ptr_ro(MDBX_cursor *cursor) : m_cursor(cursor)
- {
- int rc = mdbx_cursor_renew(mdbx_cursor_txn(m_cursor), m_cursor);
- /* FIXME: throw an exception */
- _ASSERT(rc == MDBX_SUCCESS);
- UNREFERENCED_PARAMETER(rc);
- }
- __forceinline operator MDBX_cursor*() const { return m_cursor; }
-};
-
#include "dbintf.h"
#include "resource.h"
#include "version.h"
|