From b4c11792c062f53d09725b1b3aedaf7b77ec260f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Jan 2021 16:40:44 +0300 Subject: unused callback removed --- include/m_chat_int.h | 1 - src/mir_app/src/chat_tools.cpp | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/m_chat_int.h b/include/m_chat_int.h index 5c1367154b..c62a649b75 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -356,7 +356,6 @@ struct CHAT_MANAGER void (*OnReplaceSession)(SESSION_INFO*); void (*ShowRoom)(SESSION_INFO*); - void (*OnGetLogName)(SESSION_INFO*, const wchar_t*); void (*OnEventBroadcast)(SESSION_INFO *si, GCEVENT *gce); void (*OnSetTopic)(SESSION_INFO*); diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index 4d1c2ef945..ffb7f3b62c 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -739,12 +739,7 @@ wchar_t* GetChatLogsFilename(SESSION_INFO *si, time_t tTime) } else ptszVarPath = g_Settings->pszLogDir; - wchar_t *tszParsedName = Utils_ReplaceVarsW(ptszVarPath, si->hContact, rva); - if (g_chatApi.OnGetLogName) - g_chatApi.OnGetLogName(si, tszParsedName); - else - PathToAbsoluteW(tszParsedName, si->pszLogFileName); - mir_free(tszParsedName); + PathToAbsoluteW(ptrW(Utils_ReplaceVarsW(ptszVarPath, si->hContact, rva)), si->pszLogFileName); for (auto &it : rva) mir_free(it.value.w); -- cgit v1.2.3