From c7d065645853b2e614e8557fa01057efaf5e6517 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 May 2024 14:23:13 +0300 Subject: DbEvent_GetTextA: unused function removed --- include/delphi/m_database.inc | 3 +-- include/m_database.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/delphi/m_database.inc b/include/delphi/m_database.inc index e7c1d5499a..909bc1ead5 100644 --- a/include/delphi/m_database.inc +++ b/include/delphi/m_database.inc @@ -297,8 +297,7 @@ function DbEvent_RegisterType(et:PDBEVENTTYPEDESCR) : int; stdcall; external App function DbEvent_GetType(szModule:PAnsiChar; eventType:int) : PDBEVENTTYPEDESCR; stdcall; external AppDll; -function DbEvent_GetTextA(dbei:PDBEVENTINFO; codepage:int) : PAnsiChar; stdcall; external AppDll; -function DbEvent_GetTextW(dbei:PDBEVENTINFO) : PWideChar; stdcall; external AppDll; +function DbEvent_GetText(dbei:PDBEVENTINFO) : PWideChar; stdcall; external AppDll; function DbEvent_GetIcon(dbei:PDBEVENTINFO; flags:int) : HICON; stdcall; external AppDll; diff --git a/include/m_database.h b/include/m_database.h index c967d6700e..1a8b5b3dd0 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -533,8 +533,7 @@ __forceinline MCONTACT DbGetAuthEventContact(DBEVENTINFO *dbei) // Function returns a pointer to a string in the required format. // This string should be freed by a call of mir_free -EXTERN_C MIR_APP_DLL(char*) DbEvent_GetTextA(const DBEVENTINFO *dbei, int codepage); -EXTERN_C MIR_APP_DLL(wchar_t*) DbEvent_GetTextW(const DBEVENTINFO *dbei); +EXTERN_C MIR_APP_DLL(wchar_t*) DbEvent_GetText(const DBEVENTINFO *dbei); ///////////////////////////////////////////////////////////////////////////////////////// // Retrieves the event's icon @@ -737,6 +736,7 @@ namespace DB bool isAlertable() const; // should raise SRMM window wchar_t* getString(const char *str) const; + wchar_t* getText() const; void addReaction(const char *emoji); void delReaction(const char *emoji); -- cgit v1.2.3