From 7bb7189d67da6f916bbc9f4076d1319cd03f65d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Nov 2020 20:17:27 +0300 Subject: Dbx_mdbx: global cursors replaced with mdbx_cursor_bind() and temporary cursors --- plugins/Dbx_mdbx/src/stdafx.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'plugins/Dbx_mdbx/src/stdafx.h') 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" -- cgit v1.2.3