summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/init.cpp
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/Db3x_mmap/src/init.cpp
parentf0c08538d0cdddb62453761e437cd7d2a3325bd0 (diff)
dbchecker moved to deprecated
Diffstat (limited to 'plugins/Db3x_mmap/src/init.cpp')
-rw-r--r--plugins/Db3x_mmap/src/init.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp
index 65a50988c5..1cca7c767d 100644
--- a/plugins/Db3x_mmap/src/init.cpp
+++ b/plugins/Db3x_mmap/src/init.cpp
@@ -119,20 +119,6 @@ LBL_Error:
return db.release();
}
-MIDatabaseChecker* CheckDb(const wchar_t *profile, int *error)
-{
- std::auto_ptr<CDb3Mmap> db(new CDb3Mmap(profile, DBMODE_READONLY));
- if (db->Load(true) != ERROR_SUCCESS) {
- *error = ERROR_ACCESS_DENIED;
- return nullptr;
- }
-
- if (db->PrepareCheck(error))
- return nullptr;
-
- return db.release();
-}
-
static DATABASELINK dblink =
{
sizeof(DATABASELINK),
@@ -140,8 +126,7 @@ static DATABASELINK dblink =
L"dbx mmap driver",
makeDatabase,
grokHeader,
- LoadDatabase,
- CheckDb
+ LoadDatabase
};
/////////////////////////////////////////////////////////////////////////////////////////