summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-08-07 14:11:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-08-07 14:11:23 +0300
commitddc626f8e0cf30ca2e5fed59da4a3e1e5b36dd0e (patch)
treef079f1888f26f939aa6959472532c0225b1ba525
parent4a99d3eefa615153732e9ba503c712907e46fb7e (diff)
unused variable removed
-rw-r--r--src/mir_app/src/database.cpp3
-rw-r--r--src/mir_app/src/miranda.h1
-rw-r--r--src/mir_app/src/newplugins.cpp1
3 files changed, 0 insertions, 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<DATABASELINK> 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();