diff options
Diffstat (limited to 'plugins/NotesAndReminders/src/miscutils.cpp')
-rw-r--r-- | plugins/NotesAndReminders/src/miscutils.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/plugins/NotesAndReminders/src/miscutils.cpp b/plugins/NotesAndReminders/src/miscutils.cpp index 3b86ad8207..676bfbbed9 100644 --- a/plugins/NotesAndReminders/src/miscutils.cpp +++ b/plugins/NotesAndReminders/src/miscutils.cpp @@ -2,7 +2,7 @@ void FreeSettingBlob(WORD pSize, void *pbBlob)
{
- DBVARIANT dbv = { 0 };
+ DBVARIANT dbv = {};
dbv.type = DBVT_BLOB;
dbv.cpbVal = pSize;
dbv.pbVal = (BYTE*)pbBlob;
@@ -23,30 +23,6 @@ void ReadSettingBlob(MCONTACT hContact, char *ModuleName, char *SettingName, WOR }
}
-void WriteSettingIntArray(MCONTACT hContact, char *ModuleName, char *SettingName, const int *Value, int Size)
-{
- db_set_blob(hContact, ModuleName, SettingName, (void*)Value, sizeof(int)*Size);
-}
-
-bool ReadSettingIntArray(MCONTACT hContact, char *ModuleName, char *SettingName, int *Value, int Size)
-{
- WORD sz = 4096;
- int *pData;
- ReadSettingBlob(hContact, ModuleName, SettingName, &sz, (void**)&pData);
- if (!pData)
- return false;
-
- bool bResult = false;
-
- if (sz == sizeof(int)*Size) {
- memcpy(Value, pData, sizeof(int)*Size);
- bResult = true;
- }
-
- FreeSettingBlob(sz, pData);
- return bResult;
-}
-
/////////////////////////////////////////////////////////////////////
// Email/SMS and WinSock functions
|