From e55ea2abfee69acba3370e7227f9c6d30456ff8d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Apr 2021 13:15:57 +0300 Subject: more code cleaning --- plugins/Dbx_mdbx/src/dbcheck.cpp | 15 +++++++++++++++ plugins/Dbx_mdbx/src/dbintf.cpp | 14 -------------- 2 files changed, 15 insertions(+), 14 deletions(-) (limited to 'plugins/Dbx_mdbx/src') diff --git a/plugins/Dbx_mdbx/src/dbcheck.cpp b/plugins/Dbx_mdbx/src/dbcheck.cpp index 6faa00095e..d64f9094e3 100644 --- a/plugins/Dbx_mdbx/src/dbcheck.cpp +++ b/plugins/Dbx_mdbx/src/dbcheck.cpp @@ -100,3 +100,18 @@ int CDbxMDBX::CheckEvents3(void) return 0; } + + +/////////////////////////////////////////////////////////////////////////////// +// MIDatabaseChecker + +int CDbxMDBX::CheckDb(int phase) +{ + switch (phase) { + case 0: return CheckEvents1(); + case 1: return CheckEvents2(); + case 2: return CheckEvents3(); + } + + return ERROR_OUT_OF_PAPER; +} diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index 73cd10b497..9d3e44a910 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -330,17 +330,3 @@ void CDbxMDBX::TouchFile() CloseHandle(hFile); } } - -/////////////////////////////////////////////////////////////////////////////// -// MIDatabaseChecker - -int CDbxMDBX::CheckDb(int phase) -{ - switch (phase) { - case 0: return CDbxMDBX::CheckEvents1(); - case 1: return CDbxMDBX::CheckEvents2(); - case 2: return CDbxMDBX::CheckEvents3(); - } - - return ERROR_OUT_OF_PAPER; -} -- cgit v1.2.3