diff options
Diffstat (limited to 'plugins/Dbx_mdbx/src/init.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/init.cpp | 14 |
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
};
/////////////////////////////////////////////////////////////////////////////////////////
|