summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_chat_int.h1
-rw-r--r--plugins/TabSRMM/src/chat_main.cpp6
-rw-r--r--src/mir_app/src/chat_manager.cpp6
-rw-r--r--src/mir_app/src/chat_svc.cpp2
4 files changed, 1 insertions, 14 deletions
diff --git a/include/m_chat_int.h b/include/m_chat_int.h
index 99088b2c2f..a9a5d2a751 100644
--- a/include/m_chat_int.h
+++ b/include/m_chat_int.h
@@ -267,7 +267,6 @@ struct CHAT_MANAGER
{
CHAT_MANAGER();
- SESSION_INFO* (*SM_CreateSession)(void);
HICON (*SM_GetStatusIcon)(SESSION_INFO *si, USERINFO * ui);
int (*SM_GetCount)(const char *pszModule);
SESSION_INFO* (*SM_FindSessionByIndex)(const char *pszModule, int iItem);
diff --git a/plugins/TabSRMM/src/chat_main.cpp b/plugins/TabSRMM/src/chat_main.cpp
index 0fe8cc168f..767900778d 100644
--- a/plugins/TabSRMM/src/chat_main.cpp
+++ b/plugins/TabSRMM/src/chat_main.cpp
@@ -219,11 +219,6 @@ static MODULEINFO* MM_CreateModule()
return new MODULEINFO();
}
-static SESSION_INFO* SM_CreateSession()
-{
- return new SESSION_INFO();
-}
-
// load the module
int Chat_Load()
{
@@ -249,7 +244,6 @@ int Chat_Load()
g_chatApi.OnSetTopic = OnSetTopic;
- g_chatApi.SM_CreateSession = SM_CreateSession;
g_chatApi.OnCreateSession = OnCreateSession;
g_chatApi.OnReplaceSession = OnReplaceSession;
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;