diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-14 19:55:58 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-14 19:55:58 +0300 |
commit | 4348743ace7373ccc75113e97cb724268a81fb4a (patch) | |
tree | 57043eb324d0cb75eff573a131216653d7eb3446 | |
parent | b496d5f1252b858c802e269c1fd02e2e5aaaafeb (diff) |
unused code removed
-rw-r--r-- | include/m_chat_int.h | 1 | ||||
-rw-r--r-- | plugins/TabSRMM/src/chat_main.cpp | 6 | ||||
-rw-r--r-- | src/mir_app/src/chat_manager.cpp | 6 | ||||
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 2 |
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;
|