From f21687a927f78ed64e4e8d1ab7a7a3d1435cd940 Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Tue, 22 Dec 2020 19:24:48 +0100 Subject: [PATCH] remove unused chains --- src/game/client/components/chat.cpp | 11 ++--------- src/game/client/components/chat.h | 3 +-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 4ebad8dfb..db8928511 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -151,13 +151,7 @@ void CChat::ConEcho(IConsole::IResult *pResult, void *pUserData) ((CChat *)pUserData)->Echo(pResult->GetString(0)); } -void CChat::ConchainChatTee(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) -{ - pfnCallback(pResult, pCallbackUserData); - ((CChat *)pUserData)->RebuildChat(); -} - -void CChat::ConchainChatBackground(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) +void CChat::ConchainChatOld(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) { pfnCallback(pResult, pCallbackUserData); ((CChat *)pUserData)->RebuildChat(); @@ -175,8 +169,7 @@ void CChat::OnConsoleInit() Console()->Register("chat", "s['team'|'all'] ?r[message]", CFGFLAG_CLIENT, ConChat, this, "Enable chat with all/team mode"); Console()->Register("+show_chat", "", CFGFLAG_CLIENT, ConShowChat, this, "Show chat"); Console()->Register("echo", "r[message]", CFGFLAG_CLIENT, ConEcho, this, "Echo the text in chat window"); - Console()->Chain("cl_chat_tee", ConchainChatTee, this); - Console()->Chain("cl_chat_background", ConchainChatBackground, this); + Console()->Chain("cl_chat_old", ConchainChatOld, this); } bool CChat::OnInput(IInput::CEvent Event) diff --git a/src/game/client/components/chat.h b/src/game/client/components/chat.h index ccdc21d0b..99011514e 100644 --- a/src/game/client/components/chat.h +++ b/src/game/client/components/chat.h @@ -107,8 +107,7 @@ class CChat : public CComponent static void ConShowChat(IConsole::IResult *pResult, void *pUserData); static void ConEcho(IConsole::IResult *pResult, void *pUserData); - static void ConchainChatTee(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData); - static void ConchainChatBackground(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData); + static void ConchainChatOld(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData); bool LineShouldHighlight(const char *pLine, const char *pName); void StoreSave(const char *pText);