summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-12 19:40:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-12 19:40:25 +0300
commita152440377a65b9ea4246f33b9e176a09161cf67 (patch)
tree77eb35ec0511c7ce5e93ca9daf2721cf6e9cb2c2 /include
parent3fe5f97dcd7c8ef8deabc32a83f5075df13bc8d2 (diff)
useless function DbEvent_GetString removed
Diffstat (limited to 'include')
-rw-r--r--include/m_database.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/m_database.h b/include/m_database.h
index 31b232ca90..3fa9e4e570 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -195,10 +195,6 @@ struct DBEVENTINFO
return (flags & (DBEF_SENT | DBEF_READ)) != 0;
}
- wchar_t* getString(const char *str) const {
- return (flags & DBEF_UTF) ? mir_utf8decodeW(str) : mir_a2u(str);
- }
-
bool __forceinline operator==(const DBEVENTINFO &e) {
return (timestamp == e.timestamp && eventType == e.eventType && cbBlob == e.cbBlob && (flags & DBEF_SENT) == (e.flags & DBEF_SENT));
}
@@ -540,13 +536,6 @@ EXTERN_C MIR_APP_DLL(wchar_t*) DbEvent_GetTextW(DBEVENTINFO *dbei, int codepage)
EXTERN_C MIR_APP_DLL(HICON) DbEvent_GetIcon(DBEVENTINFO *dbei, int flags);
/////////////////////////////////////////////////////////////////////////////////////////
-// Converts the event's string to wchar_t* depending on the event's format
-// returns wchar_t* - the converted string
-// Caller must free the result using mir_free
-
-EXTERN_C MIR_APP_DLL(wchar_t*) DbEvent_GetString(DBEVENTINFO *dbei, const char *str);
-
-/////////////////////////////////////////////////////////////////////////////////////////
// Database events
/////////////////////////////////////////////////////////////////////////////////////////
@@ -695,6 +684,8 @@ namespace DB
~EventInfo();
__forceinline operator bool() const { return bValid; }
+
+ wchar_t* getString(const char *str) const;
};
/////////////////////////////////////////////////////////////////////////////////////////