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/Db3x_mmap/src/dbintf.cpp | 40 +++------------------------------------- 1 file changed, 3 insertions(+), 37 deletions(-) (limited to 'plugins/Db3x_mmap/src/dbintf.cpp') diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp index faf15ebd62..7cb981591f 100644 --- a/plugins/Db3x_mmap/src/dbintf.cpp +++ b/plugins/Db3x_mmap/src/dbintf.cpp @@ -159,43 +159,9 @@ int CDb3Mmap::Create() STDMETHODIMP_(void) CDb3Mmap::SetCacheSafetyMode(BOOL bIsSet) { - { mir_cslock lck(m_csDbAccess); - m_safetyMode = bIsSet != 0; + { + mir_cslock lck(m_csDbAccess); + m_safetyMode = bIsSet != 0; } DBFlush(1); } - -/////////////////////////////////////////////////////////////////////////////// -// MIDatabaseChecker - -typedef int (CDb3Mmap::*CheckWorker)(int); - -static CheckWorker Workers[6] = -{ - &CDb3Mmap::WorkInitialChecks, - &CDb3Mmap::WorkModuleChain, - &CDb3Mmap::WorkUser, - &CDb3Mmap::WorkContactChain, - &CDb3Mmap::WorkAggressive, - &CDb3Mmap::WorkFinalTasks -}; - -int CDb3Mmap::Start(DBCHeckCallback *callback) -{ - cb = callback; - ReMap(0); - return ERROR_SUCCESS; -} - -int CDb3Mmap::CheckDb(int phase, int firstTime) -{ - if (phase >= _countof(Workers)) - return ERROR_OUT_OF_PAPER; - - return (this->*Workers[phase])(firstTime); -} - -void CDb3Mmap::Destroy() -{ - delete this; -} -- cgit v1.2.3