diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/chat_manager.cpp | 6 | ||||
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 2 |
2 files changed, 1 insertions, 7 deletions
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;
|