Remove unused CClient::DirectInput function

The function is unused and because the message is not flushed it would also not have worked correctly. The `NETMSG_INPUT` message is already packed and flushed in the `CClient::SendInput` function.

Closes #8408.
This commit is contained in:
Robert Müller 2024-07-29 21:40:03 +02:00
parent 83c9b6cae6
commit 92b0b90b29
2 changed files with 0 additions and 14 deletions

View file

@ -236,19 +236,6 @@ bool CClient::ConnectionProblems() const
return m_aNetClient[g_Config.m_ClDummy].GotProblems(MaxLatencyTicks() * time_freq() / GameTickSpeed()) != 0;
}
void CClient::DirectInput(int *pInput, int Size)
{
CMsgPacker Msg(NETMSG_INPUT, true);
Msg.AddInt(m_aAckGameTick[g_Config.m_ClDummy]);
Msg.AddInt(m_aPredTick[g_Config.m_ClDummy]);
Msg.AddInt(Size);
for(int i = 0; i < Size / 4; i++)
Msg.AddInt(pInput[i]);
SendMsgActive(&Msg, 0);
}
void CClient::SendInput()
{
int64_t Now = time_get();

View file

@ -294,7 +294,6 @@ public:
IGraphics::CTextureHandle GetDebugFont() const override { return m_DebugFont; }
void DirectInput(int *pInput, int Size);
void SendInput();
// TODO: OPT: do this a lot smarter!