summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-13 23:27:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-13 23:27:53 +0300
commit0d1a92abd015c7012f235ced2fdcb939056a9390 (patch)
treecb302e82572c8ba67f8b0655f0173291f3ec5dd6 /src
parent4f703b8a011b262a79fe67e3bffc43b4f74b0032 (diff)
SM_BroadcastMessage removed from CHAT_MANAGER, we don't need it anymore
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_manager.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mir_app/src/chat_manager.cpp b/src/mir_app/src/chat_manager.cpp
index 76f85012db..879bf83780 100644
--- a/src/mir_app/src/chat_manager.cpp
+++ b/src/mir_app/src/chat_manager.cpp
@@ -310,22 +310,6 @@ BOOL SM_TakeStatus(const wchar_t *pszID, const char *pszModule, const wchar_t *p
return TRUE;
}
-static BOOL SM_BroadcastMessage(const char *pszModule, UINT msg, WPARAM wParam, LPARAM lParam, BOOL bAsync)
-{
- for (auto &si : g_arSessions) {
- if (pszModule && _strcmpi(si->pszModule, pszModule))
- continue;
-
- if (si->pDlg) {
- if (bAsync)
- PostMessage(si->pDlg->GetHwnd(), msg, wParam, lParam);
- else
- SendMessage(si->pDlg->GetHwnd(), msg, wParam, lParam);
- }
- }
- return TRUE;
-}
-
BOOL SM_SetStatus(const char *pszModule, SESSION_INFO *si, int wStatus)
{
if (si == nullptr) {
@@ -869,7 +853,6 @@ static void ResetApi()
g_chatApi.SM_CreateSession = ::SM_CreateSession;
g_chatApi.SM_FindSession = ::SM_FindSession;
g_chatApi.SM_GetStatusIcon = ::SM_GetStatusIcon;
- g_chatApi.SM_BroadcastMessage = ::SM_BroadcastMessage;
g_chatApi.SM_GetCount = ::SM_GetCount;
g_chatApi.SM_FindSessionByIndex = ::SM_FindSessionByIndex;
g_chatApi.SM_GetUserFromIndex = ::SM_GetUserFromIndex;