From dae0d079ad629d499034ff911e0b1a807c19fce0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Jan 2021 13:16:14 +0300 Subject: duplicate code and variables removed --- plugins/Db3x_mmap/src/dbintf.cpp | 3 --- plugins/Db3x_mmap/src/dbintf.h | 2 +- plugins/Dbx_mdbx/src/dbintf.cpp | 3 --- plugins/Dbx_mdbx/src/dbintf.h | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins') diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp index 72a15450b6..cee46868a9 100644 --- a/plugins/Db3x_mmap/src/dbintf.cpp +++ b/plugins/Db3x_mmap/src/dbintf.cpp @@ -74,9 +74,6 @@ CDb3Mmap::~CDb3Mmap() DestroyServiceFunction(hService); UnhookEvent(hHook); - if (m_crypto) - m_crypto->destroy(); - if (m_hMap) CloseHandle(m_hMap); diff --git a/plugins/Db3x_mmap/src/dbintf.h b/plugins/Db3x_mmap/src/dbintf.h index e839d56e4f..70d60e80df 100644 --- a/plugins/Db3x_mmap/src/dbintf.h +++ b/plugins/Db3x_mmap/src/dbintf.h @@ -264,7 +264,7 @@ protected: HANDLE m_hDbFile; DBHeader m_dbHeader; DWORD m_ChunkSize; - bool m_safetyMode, m_bReadOnly, m_bShared, m_bEncrypted, m_bUsesPassword; + bool m_safetyMode, m_bReadOnly, m_bShared, m_bUsesPassword; //////////////////////////////////////////////////////////////////////////// // database stuff diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index dd0ed5cbaf..a9d57566c2 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -50,9 +50,6 @@ CDbxMDBX::~CDbxMDBX() for (auto &it : hService) DestroyServiceFunction(it); UnhookEvent(hHook); - - if (m_crypto) - m_crypto->destroy(); } ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/plugins/Dbx_mdbx/src/dbintf.h b/plugins/Dbx_mdbx/src/dbintf.h index 0705359342..c802b05d3b 100644 --- a/plugins/Dbx_mdbx/src/dbintf.h +++ b/plugins/Dbx_mdbx/src/dbintf.h @@ -247,7 +247,6 @@ public: __forceinline LPSTR GetMenuTitle() const { return m_bUsesPassword ? (char*)LPGEN("Change/remove password") : (char*)LPGEN("Set password"); } - __forceinline bool isEncrypted() const { return m_bEncrypted; } __forceinline bool usesPassword() const { return m_bUsesPassword; } public: -- cgit v1.2.3