From 39261941101e2794f3bc78c281e9ae8f3047e0df Mon Sep 17 00:00:00 2001 From: Johan Mattsson <39247600+mjunix@users.noreply.github.com> Date: Sun, 13 Aug 2023 13:09:43 +0200 Subject: [PATCH] Remove redundant check --- radiant/eclass.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/radiant/eclass.cpp b/radiant/eclass.cpp index c4e96e9f..0b3dbed4 100644 --- a/radiant/eclass.cpp +++ b/radiant/eclass.cpp @@ -449,10 +449,6 @@ eclass_t *Eclass_ForName( const char *name, qboolean has_brushes ){ } #endif - if ( !name ) { - return eclass_bad; - } - for ( e = eclass ; e ; e = e->next ) if ( !strcmp( name, e->name ) ) { return e;