From 1cd15bc24f7e8cb87e9a9b96dd05ce62ce58cf0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Mar 2018 21:52:27 +0300 Subject: old C-style code is obsolete now because of MDatabaseCommon existence --- plugins/Db3x_mmap/src/dbintf.cpp | 2 -- plugins/Dbx_mdbx/src/dbintf.cpp | 2 -- 2 files changed, 4 deletions(-) (limited to 'plugins') diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp index da2e998595..dc775b82b1 100644 --- a/plugins/Db3x_mmap/src/dbintf.cpp +++ b/plugins/Db3x_mmap/src/dbintf.cpp @@ -49,7 +49,6 @@ CDb3Mmap::CDb3Mmap(const wchar_t *tszFileName, int iMode) : m_lOfs(50, OfsCompare) { m_tszProfileName = mir_wstrdup(tszFileName); - InitDbInstance(this); SYSTEM_INFO sinf; GetSystemInfo(&sinf); @@ -98,7 +97,6 @@ CDb3Mmap::~CDb3Mmap() DestroyHookableEvent(hEventDeletedEvent); DestroyHookableEvent(hEventFilterAddedEvent); - DestroyDbInstance(this); mir_free(m_tszProfileName); free(m_pNull); diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index 93d6a7db09..e74f266248 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -30,7 +30,6 @@ CDbxMDBX::CDbxMDBX(const TCHAR *tszFileName, int iMode) : m_maxContactId(0) { m_tszProfileName = mir_wstrdup(tszFileName); - InitDbInstance(this); mdbx_env_create(&m_env); mdbx_env_set_maxdbs(m_env, 10); @@ -57,7 +56,6 @@ CDbxMDBX::~CDbxMDBX() DestroyHookableEvent(hEventDeletedEvent); DestroyHookableEvent(hEventFilterAddedEvent); - DestroyDbInstance(this); mir_free(m_tszProfileName); } -- cgit v1.2.3