summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-25 21:10:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-25 21:10:40 +0300
commit3583f79d974d805aa67ba8b1feb49a4974c2e4cd (patch)
tree4eea2be29bde54b8ca301eb12b617e08be39fad6 /plugins/Dbx_mdbx
parentf0c08538d0cdddb62453761e437cd7d2a3325bd0 (diff)
dbchecker moved to deprecated
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/init.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/Dbx_mdbx/src/init.cpp b/plugins/Dbx_mdbx/src/init.cpp
index 3e7153e6db..1fd64d825b 100644
--- a/plugins/Dbx_mdbx/src/init.cpp
+++ b/plugins/Dbx_mdbx/src/init.cpp
@@ -75,17 +75,6 @@ static MDatabaseCommon* LoadDatabase(const TCHAR *profile, BOOL bReadOnly)
return db.release();
}
-MIDatabaseChecker* CheckDb(const TCHAR *profile, int *error)
-{
- std::unique_ptr<CDbxMDBX> db(new CDbxMDBX(profile, DBMODE_READONLY));
- if (db->Load(true) != ERROR_SUCCESS) {
- *error = ERROR_ACCESS_DENIED;
- return nullptr;
- }
-
- return db.release();
-}
-
static DATABASELINK dblink =
{
sizeof(DATABASELINK),
@@ -93,8 +82,7 @@ static DATABASELINK dblink =
L"MDBX database driver",
makeDatabase,
grokHeader,
- LoadDatabase,
- CheckDb
+ LoadDatabase
};
/////////////////////////////////////////////////////////////////////////////////////////