diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-08 13:16:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-08 13:16:14 +0300 |
commit | dae0d079ad629d499034ff911e0b1a807c19fce0 (patch) | |
tree | c5bef52093ec010d2b223513da02da7ce8ed6bec /plugins | |
parent | e06357e08f44b4537514ba1d97562e5e005ac8b4 (diff) |
duplicate code and variables removed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Db3x_mmap/src/dbintf.cpp | 3 | ||||
-rw-r--r-- | plugins/Db3x_mmap/src/dbintf.h | 2 | ||||
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 3 | ||||
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.h | 1 |
4 files changed, 1 insertions, 8 deletions
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:
|