Remove dead code

This commit is contained in:
Robert Müller 2022-11-03 21:54:49 +01:00
parent c2d2093c89
commit bbf36a226c

View file

@ -2603,37 +2603,6 @@ void CClient::OnDemoPlayerMessage(void *pData, int Size)
if(!Sys) if(!Sys)
GameClient()->OnMessage(Msg, &Unpacker, CONN_MAIN, false); GameClient()->OnMessage(Msg, &Unpacker, CONN_MAIN, false);
} }
/*
const IDemoPlayer::CInfo *client_demoplayer_getinfo()
{
static DEMOPLAYBACK_INFO ret;
const DEMOREC_PLAYBACKINFO *info = m_DemoPlayer.Info();
ret.first_tick = info->first_tick;
ret.last_tick = info->last_tick;
ret.current_tick = info->current_tick;
ret.paused = info->paused;
ret.speed = info->speed;
return &ret;
}*/
/*
void DemoPlayer()->SetPos(float percent)
{
demorec_playback_set(percent);
}
void DemoPlayer()->SetSpeed(float speed)
{
demorec_playback_setspeed(speed);
}
void DemoPlayer()->SetPause(int paused)
{
if(paused)
demorec_playback_pause();
else
demorec_playback_unpause();
}*/
void CClient::UpdateDemoIntraTimers() void CClient::UpdateDemoIntraTimers()
{ {
@ -3082,11 +3051,6 @@ void CClient::Run()
// init the editor // init the editor
m_pEditor->Init(); m_pEditor->Init();
// load and save a map to fix it
/*if(m_pEditor->Load(arg, IStorage::TYPE_ALL))
m_pEditor->Save(arg);
return;*/
m_ServerBrowser.OnInit(); m_ServerBrowser.OnInit();
// loads the existing ddnet info file if it exists // loads the existing ddnet info file if it exists
LoadDDNetInfo(); LoadDDNetInfo();
@ -3110,13 +3074,6 @@ void CClient::Run()
m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf, ColorRGBA(0.7f, 0.7f, 1, 1.0f)); m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf, ColorRGBA(0.7f, 0.7f, 1, 1.0f));
} }
// connect to the server if wanted
/*
if(config.cl_connect[0] != 0)
Connect(config.cl_connect);
config.cl_connect[0] = 0;
*/
// //
m_FpsGraph.Init(0.0f, 120.0f); m_FpsGraph.Init(0.0f, 120.0f);