From ddc626f8e0cf30ca2e5fed59da4a3e1e5b36dd0e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 7 Aug 2020 14:11:23 +0300 Subject: unused variable removed --- src/mir_app/src/database.cpp | 3 --- src/mir_app/src/miranda.h | 1 - src/mir_app/src/newplugins.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index 8a6bbd2c82..3353b5af22 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -26,7 +26,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "profilemanager.h" MDatabaseCommon *currDb = nullptr; -DATABASELINK *currDblink = nullptr; bool g_bDbCreated; wchar_t g_profileDir[MAX_PATH], g_profileName[MAX_PATH], g_shortProfileName[MAX_PATH]; @@ -405,7 +404,6 @@ int tryOpenDatabase(const wchar_t *tszProfile) return EGROKPRF_CANTREAD; fillProfileName(tszProfile); - currDblink = it; db_setCurrent(currDb = pDb); return 0; } @@ -427,7 +425,6 @@ static int tryCreateDatabase(const wchar_t *ptszProfile) return EGROKPRF_CANTREAD; fillProfileName(ptszProfile); - currDblink = p; db_setCurrent(currDb = pDb); return 0; } diff --git a/src/mir_app/src/miranda.h b/src/mir_app/src/miranda.h index 5a4bd464af..dde8b65df3 100644 --- a/src/mir_app/src/miranda.h +++ b/src/mir_app/src/miranda.h @@ -51,7 +51,6 @@ extern pfnDwmIsCompositionEnabled dwmIsCompositionEnabled; /**** database.cpp *********************************************************************/ extern MDatabaseCommon *currDb; -extern DATABASELINK *currDblink; extern LIST arDbPlugins; int InitIni(void); diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp index b82164ebd3..abb106b231 100644 --- a/src/mir_app/src/newplugins.cpp +++ b/src/mir_app/src/newplugins.cpp @@ -782,7 +782,6 @@ void UnloadDatabase(void) db_setCurrent(nullptr); delete currDb; currDb = nullptr; - currDblink = nullptr; } UninitIni(); -- cgit v1.2.3