summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/mir_db.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-02-09 17:40:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-02-09 17:40:09 +0300
commita43d5bcb1e0bdafb0193662168976aac989ed922 (patch)
treec4f154f05f36626678efc64ae7a1139b30b5f4fe /plugins/UserInfoEx/src/mir_db.cpp
parent760867149a99443036f53c73190d53bd87039def (diff)
db_is_module_empty & db_copy_module - new database helpers
Diffstat (limited to 'plugins/UserInfoEx/src/mir_db.cpp')
-rw-r--r--plugins/UserInfoEx/src/mir_db.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/UserInfoEx/src/mir_db.cpp b/plugins/UserInfoEx/src/mir_db.cpp
index f10a850566..ad76d4b4c5 100644
--- a/plugins/UserInfoEx/src/mir_db.cpp
+++ b/plugins/UserInfoEx/src/mir_db.cpp
@@ -56,21 +56,6 @@ uint32_t WhenAdded(uint32_t dwUIN, LPCSTR)
namespace Module {
/**
-* Deletes all settings in the module.
-* @param hContact - handle to the contact
-* @param pszModule - the module to delete the setting from (e.g. USERINFO)
-* return: nothing
-**/
-
-void Delete(MCONTACT hContact, LPCSTR pszModule)
-{
- CEnumList Settings;
- if (!Settings.EnumSettings(hContact, pszModule))
- for (auto &it : Settings)
- db_unset(hContact, pszModule, it);
-}
-
-/**
* Enum Proc for DBModule_IsEmpty
* @param pszSetting - the setting
* @param lParam - DBCONTACTENUMSETTINGS - (LPARAM)&dbces
@@ -83,19 +68,6 @@ static int IsEmptyEnumProc(LPCSTR, void*)
}
/**
-* This function tests, whether a module is empty for the given contact or not
-* @param hContact - handle to the contact
-* @param pszModule - the module to read the setting from (e.g. USERINFO)
-* @retval TRUE - the module is empty
-* @retval FALSE - the module contains settings
-**/
-
-bool IsEmpty(MCONTACT hContact, LPCSTR pszModule)
-{
- return 0 > db_enum_settings(hContact, IsEmptyEnumProc, pszModule);
-}
-
-/**
* This function tests, whether a module belongs to a metacontact protocol
* @param pszModule - the module to read the setting from (e.g. USERINFO)
* @retval TRUE - the module belongs to a metacontact protocol