From 01b7a72d43ed1c71544c22c7afb61829762ffe8e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jun 2013 22:02:44 +0000 Subject: same for some another plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@5104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotesAndReminders/src/miscutils.cpp | 36 ----------------------------- 1 file changed, 36 deletions(-) (limited to 'plugins/NotesAndReminders/src/miscutils.cpp') diff --git a/plugins/NotesAndReminders/src/miscutils.cpp b/plugins/NotesAndReminders/src/miscutils.cpp index 1ea10305c9..8ce1ca8655 100644 --- a/plugins/NotesAndReminders/src/miscutils.cpp +++ b/plugins/NotesAndReminders/src/miscutils.cpp @@ -23,42 +23,6 @@ WORD ConvertControlToHotKey(WORD HK) return R; } -void WriteSettingInt(HANDLE hContact,char *ModuleName,char *SettingName,int Value) -{ - DBCONTACTWRITESETTING cws = {0}; - DBVARIANT dbv = {0}; - dbv.type = DBVT_DWORD; - dbv.dVal = Value; - cws.szModule = ModuleName; - cws.szSetting = SettingName; - cws.value = dbv; - CallService(MS_DB_CONTACT_WRITESETTING, (WPARAM)hContact, (DWORD)&cws); -} - -int ReadSettingInt(HANDLE hContact,char *ModuleName,char *SettingName,int Default) -{ - DBCONTACTGETSETTING cws = {0}; - DBVARIANT dbv = {0}; - dbv.type = DBVT_DWORD; - dbv.dVal = Default; - cws.szModule = ModuleName; - cws.szSetting = SettingName; - cws.pValue = &dbv; - if (CallService(MS_DB_CONTACT_GETSETTING,(DWORD)hContact,(DWORD)&cws)) - return Default; - else - return dbv.dVal; -} - -void DeleteSetting(HANDLE hContact,char *ModuleName,char *SettingName) -{ - DBCONTACTGETSETTING dbcgs = {0}; - dbcgs.szModule = ModuleName; - dbcgs.szSetting = SettingName; - dbcgs.pValue = NULL; - CallService(MS_DB_CONTACT_DELETESETTING,(DWORD)hContact,(DWORD)&dbcgs); -} - void FreeSettingBlob(WORD pSize,void *pbBlob) { DBVARIANT dbv = {0}; -- cgit v1.2.3