From 8788bb35e10ef5403a08388d33ed4ab2ff7d67df Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jun 2013 12:32:12 +0000 Subject: new helper applied instead of MS_DB_SETSETTINGRESIDENT git-svn-id: http://svn.miranda-ng.org/main/trunk@5094 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/mir_db.cpp | 13 ------------- plugins/UserInfoEx/src/mir_db.h | 1 - 2 files changed, 14 deletions(-) (limited to 'plugins/UserInfoEx/src') diff --git a/plugins/UserInfoEx/src/mir_db.cpp b/plugins/UserInfoEx/src/mir_db.cpp index c41df9076b..4dd9298a0b 100644 --- a/plugins/UserInfoEx/src/mir_db.cpp +++ b/plugins/UserInfoEx/src/mir_db.cpp @@ -809,19 +809,6 @@ void DeleteArray(HANDLE hContact, LPCSTR pszModule, LPCSTR pszFormat, int iStart while (!DB::Setting::Delete(hContact, pszModule, pszSetting)); } -/** - * This function can prevent a setting from being stored to database permanently. - * @param pszSetting - the setting to read - * @param enabled - if set to 'true' the setting will not be stored in database - * - * @retval 0 - success - * @retval 1 - failure - **/ -BYTE Resident(LPCSTR pszSetting, const bool enabled) -{ - return CallService(MS_DB_SETSETTINGRESIDENT, (WPARAM) enabled, (LPARAM) pszSetting) != 0; -} - } /* namespace Setting */ namespace Variant { diff --git a/plugins/UserInfoEx/src/mir_db.h b/plugins/UserInfoEx/src/mir_db.h index 5bc5504374..0eaa774687 100644 --- a/plugins/UserInfoEx/src/mir_db.h +++ b/plugins/UserInfoEx/src/mir_db.h @@ -171,7 +171,6 @@ namespace Setting { BYTE Exists (HANDLE hContact, LPCSTR pszModule, LPCSTR pszSetting); BYTE Delete (HANDLE hContact, LPCSTR pszModule, LPCSTR pszSetting); void DeleteArray (HANDLE hContact, LPCSTR pszModule, LPCSTR pszFormat, int iStart); - BYTE Resident (LPCSTR pszSetting, const bool enabled); } /* namespace Setting */ -- cgit v1.2.3