summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/mir_db.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-03-17 21:41:50 +0300
committerMataes <mataes2007@gmail.com>2018-03-17 21:41:50 +0300
commitf632783f27da5dd0ed3513bbee6182ea8af30afe (patch)
tree9cc74d2944501221126e628404532aed8c7b5cd9 /plugins/FTPFileYM/src/mir_db.cpp
parent32ac77ea600fa6ae33fea77d2be8fdaec865da7b (diff)
FTPFile: replace mir_strcpy and mir_wstrcpy
Diffstat (limited to 'plugins/FTPFileYM/src/mir_db.cpp')
-rw-r--r--plugins/FTPFileYM/src/mir_db.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugins/FTPFileYM/src/mir_db.cpp b/plugins/FTPFileYM/src/mir_db.cpp
index e7c693585a..fcd6d35cc7 100644
--- a/plugins/FTPFileYM/src/mir_db.cpp
+++ b/plugins/FTPFileYM/src/mir_db.cpp
@@ -74,46 +74,6 @@ int DB::getDwordF(MCONTACT hContact, char *szModule, char *szSetting, int id, in
return db_get_dw(hContact, szModule, formSet, iErrorValue);
}
-int DB::getAString(MCONTACT hContact, char *szModule, char *szSetting, char *buff)
-{
- DBVARIANT dbv;
- if (!db_get_s(hContact, szModule, szSetting, &dbv)) {
- mir_strcpy(buff, dbv.pszVal);
- db_free(&dbv);
- return 0;
- }
-
- buff[0] = 0;
- return 1;
-}
-
-int DB::getAStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, char *buff)
-{
- char formSet[256];
- mir_snprintf(formSet, szSetting, id);
- return getAString(hContact, szModule, formSet, buff);
-}
-
-int DB::getString(MCONTACT hContact, char *szModule, char *szSetting, wchar_t *buff)
-{
- DBVARIANT dbv;
- if (!db_get_ws(hContact, szModule, szSetting, &dbv)) {
- mir_wstrcpy(buff, dbv.ptszVal);
- db_free(&dbv);
- return 0;
- }
-
- buff[0] = 0;
- return 1;
-}
-
-int DB::getStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, wchar_t *buff)
-{
- char formSet[256];
- mir_snprintf(formSet, szSetting, id);
- return getString(hContact, szModule, formSet, buff);
-}
-
int DB::deleteSettingF(MCONTACT hContact, char *szModule, char *szSetting, int id)
{
char formSet[256];