Remove useless if statement

If conf is at eof, linePos and command.Size() will be 0, and the other statements will not run due to eof checks and pointer checks
This commit is contained in:
Kevin Caccamo 2025-06-16 03:05:28 -04:00 committed by Ricardo Luís Vaz Silva
commit ba050c112e

View file

@ -183,10 +183,6 @@ void D_LoadWadSettings ()
{
command.Push(conf[linePos]);
}
if (linePos == 0 && conf >= eof) // End of file
{
break;
}
// Increment 'conf' pointer to next line
conf += linePos;
while (conf < eof && (*conf == '\n' || *conf == '\r'))