Skip to content

Commit

Permalink
Remove useless try-catch statement in command menu parsing code
Browse files Browse the repository at this point in the history
Resolves twhl-community#64

(cherry picked from commit c36c919)
  • Loading branch information
SamVanheer authored and LogicAndTrick committed Dec 24, 2021
1 parent 76449b9 commit c146121
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cl_dll/vgui_TeamFortressViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ void TeamFortressViewport::Initialize()
App::getInstance()->setCursorOveride( App::getInstance()->getScheme()->getCursor(Scheme::scu_none) );
}

class CException;
//-----------------------------------------------------------------------------
// Purpose: Read the Command Menu structure from the txt file and create the menu.
// Returns Index of menu in m_pCommandMenus
Expand Down Expand Up @@ -708,10 +707,6 @@ int TeamFortressViewport::CreateCommandMenu( const char * menuFile, int directio
return newIndex;
}

#ifdef WIN32
try
{
#endif
// First, read in the localisation strings

// Detpack strings
Expand Down Expand Up @@ -918,17 +913,6 @@ try

pfile = gEngfuncs.COM_ParseFile(pfile, token);
}
#ifdef WIN32
}
catch( CException *e )
{
e;
//e->Delete();
e = NULL;
m_iInitialized = false;
return newIndex;
}
#endif

SetCurrentMenu( NULL );
SetCurrentCommandMenu( NULL );
Expand Down

0 comments on commit c146121

Please sign in to comment.