From 25ec54ea27a7099f33573b260a620ed7273176fe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Jun 2013 12:16:44 +0000 Subject: - db_set_blob used everywhere for writing blobs - DBCONTACTWRITESETTING left only in the event handlers git-svn-id: http://svn.miranda-ng.org/main/trunk@5191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/mir_db.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'plugins/UserInfoEx/src/mir_db.cpp') diff --git a/plugins/UserInfoEx/src/mir_db.cpp b/plugins/UserInfoEx/src/mir_db.cpp index e40855b24b..fcd347e373 100644 --- a/plugins/UserInfoEx/src/mir_db.cpp +++ b/plugins/UserInfoEx/src/mir_db.cpp @@ -465,26 +465,6 @@ BYTE GetStatic(HANDLE hContact, LPCSTR pszModule, LPCSTR pszSetting, LPSTR pszVa return 1; } -/** - * This function calls MS_DB_CONTACT_WRITESETTING to write a DBVARIANT structure to the database. - * @param hContact - handle to the contact - * @param pszModule - the module to read the setting from (e.g. USERINFO) - * @param pszSetting - the setting to write - * @param dbv - the DBVARIANT to store - * - * @retval 0 - success - * @retval 1 - error - **/ -BYTE WriteVariant(HANDLE hContact, LPCSTR pszModule, LPCSTR pszSetting, const DBVARIANT *dbv) -{ - DBCONTACTWRITESETTING cws; - - cws.szModule = pszModule; - cws.szSetting = pszSetting; - memcpy(&cws.value, dbv, sizeof(DBVARIANT)); - return CallService(MS_DB_CONTACT_WRITESETTING, (WPARAM) hContact, (LPARAM) &cws) != 0; -} - /** * This function checks for the existence of the given setting in the database * @param hContact - handle to the contact -- cgit v1.2.3