From 01e48461e3ddf45c2e9065276ff4b4c5f59ae77b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Mar 2018 21:39:35 +0300 Subject: MIDatabaseChecker interface removed --- plugins/Dbx_mdbx/src/dbintf.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'plugins/Dbx_mdbx/src/dbintf.cpp') diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index aa2cd398b3..5ecac705be 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -196,33 +196,3 @@ int CDbxMDBX::Map() mode |= MDBX_RDONLY; return mdbx_env_open(m_env, _T2A(m_tszProfileName), mode, 0664); } - -/////////////////////////////////////////////////////////////////////////////// -// MIDatabaseChecker - -typedef int (CDbxMDBX::*CheckWorker)(void); - -int CDbxMDBX::Start(DBCHeckCallback *callback) -{ - cb = callback; - return ERROR_SUCCESS; -} - -static CheckWorker Workers[6] = -{ - &CDbxMDBX::CheckEvents1, - &CDbxMDBX::CheckEvents2, -}; - -int CDbxMDBX::CheckDb(int phase, int) -{ - if (phase >= _countof(Workers)) - return ERROR_OUT_OF_PAPER; - - return (this->*Workers[phase])(); -} - -void CDbxMDBX::Destroy() -{ - delete this; -} -- cgit v1.2.3