From 4348743ace7373ccc75113e97cb724268a81fb4a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Oct 2024 19:55:58 +0300 Subject: unused code removed --- src/mir_app/src/chat_manager.cpp | 6 ------ src/mir_app/src/chat_svc.cpp | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/chat_manager.cpp b/src/mir_app/src/chat_manager.cpp index 507c24895b..f53c615163 100644 --- a/src/mir_app/src/chat_manager.cpp +++ b/src/mir_app/src/chat_manager.cpp @@ -116,11 +116,6 @@ void SESSION_INFO::markRead(bool bForce) // Session Manager functions // Keeps track of all sessions and its windows -static SESSION_INFO* SM_CreateSession(void) -{ - return new SESSION_INFO(); -} - void SM_FreeSession(SESSION_INFO *si) { si->markRead(true); @@ -765,7 +760,6 @@ static void CreateNick(const SESSION_INFO *, const LOGINFO *lin, CMStringW &wszN static void ResetApi() { - g_chatApi.SM_CreateSession = ::SM_CreateSession; g_chatApi.SM_GetStatusIcon = ::SM_GetStatusIcon; g_chatApi.SM_GetCount = ::SM_GetCount; g_chatApi.SM_FindSessionByIndex = ::SM_FindSessionByIndex; diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index 3387d9d7b9..b697ce1cb4 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -224,7 +224,7 @@ MIR_APP_DLL(SESSION_INFO*) Chat_NewSession( } // create a new session - si = g_chatApi.SM_CreateSession(); + si = new SESSION_INFO(); si->ptszID = mir_wstrdup(ptszID); si->pszModule = mir_strdup(pszModule); si->pMI = mi; -- cgit v1.2.3