summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-13 17:11:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-13 17:11:58 +0000
commitf51995e13679a37851baef8e7f52f2d993cbc7c1 (patch)
tree25ccd03cf2dc4b897cc0dc6fcbe4cc78ddb122c7 /plugins/HistoryStats
parentfe1e8456d2488095f409a4f2d38b7251abdedccf (diff)
mode old database junk to die
git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats')
-rw-r--r--plugins/HistoryStats/src/mu_common.cpp22
-rw-r--r--plugins/HistoryStats/src/mu_common.h12
-rw-r--r--plugins/HistoryStats/src/utils.cpp4
3 files changed, 2 insertions, 36 deletions
diff --git a/plugins/HistoryStats/src/mu_common.cpp b/plugins/HistoryStats/src/mu_common.cpp
index ef5bfc66e2..d941c7c1c1 100644
--- a/plugins/HistoryStats/src/mu_common.cpp
+++ b/plugins/HistoryStats/src/mu_common.cpp
@@ -44,28 +44,6 @@ namespace mu
}
/*
- * db
- */
-
- namespace db
- {
- int getProfilePath(int cbName, wchar_t* pszName)
- {
- return CallService(MS_DB_GETPROFILEPATHW, cbName, reinterpret_cast<LPARAM>(pszName));
- }
-
- int getProfileName(int cbName, wchar_t* pszName)
- {
- return CallService(MS_DB_GETPROFILENAMEW, cbName, reinterpret_cast<LPARAM>(pszName));
- }
-
- void setSafetyMode(bool safetyMode)
- {
- CallService(MS_DB_SETSAFETYMODE, BOOL_(safetyMode), 0);
- }
- }
-
- /*
* db_time
*/
diff --git a/plugins/HistoryStats/src/mu_common.h b/plugins/HistoryStats/src/mu_common.h
index cc82ea61da..e8d407e928 100644
--- a/plugins/HistoryStats/src/mu_common.h
+++ b/plugins/HistoryStats/src/mu_common.h
@@ -18,24 +18,12 @@ namespace mu
}
/*
- * db
- */
-
- namespace db
- {
- int getProfilePath(int cbName, wchar_t* pszName);
- int getProfileName(int cbName, wchar_t* pszName);
- void setSafetyMode(bool safetyMode);
- }
-
- /*
* db_contact
*/
namespace db_contact
{
int enumSettings(MCONTACT hContact, const char* szModule, DBSETTINGENUMPROC pEnumProc, LPARAM lProcParam);
- int getCount();
}
/*
diff --git a/plugins/HistoryStats/src/utils.cpp b/plugins/HistoryStats/src/utils.cpp
index bc1c1f272b..7c2d0f3a93 100644
--- a/plugins/HistoryStats/src/utils.cpp
+++ b/plugins/HistoryStats/src/utils.cpp
@@ -909,7 +909,7 @@ namespace utils
if (strProfilePath.empty()) {
wchar_t szPath[MAX_PATH] = { 0 };
- mu::db::getProfilePath(MAX_PATH, szPath);
+ Profile_GetPathW(MAX_PATH, szPath);
strProfilePath = szPath;
if (strProfilePath.empty() || strProfilePath[strProfilePath.length() - 1] != '\\')
@@ -928,7 +928,7 @@ namespace utils
if (strProfileName.empty()) {
wchar_t szName[MAX_PATH] = { 0 };
- mu::db::getProfileName(MAX_PATH, szName);
+ Profile_GetNameW(MAX_PATH, szName);
strProfileName = szName;
ext::string::size_type posDot = strProfileName.rfind('.');