Gerbview: unexceptional exception cleanups

This commit is contained in:
Mike Williams 2022-07-25 11:15:02 -04:00
parent 23a4b1001f
commit ece9a782ac
1 changed files with 1 additions and 5 deletions

View File

@ -175,12 +175,8 @@ private:
int orig_layer = m_groups[i].first; int orig_layer = m_groups[i].first;
int new_layer = orig_layer; int new_layer = orig_layer;
try if( aReorderMap.count( orig_layer ) )
{
new_layer = aReorderMap.at( orig_layer ); new_layer = aReorderMap.at( orig_layer );
}
catch( const std::out_of_range& )
{}
m_groups[i].first = new_layer; m_groups[i].first = new_layer;
} }