Clean up a few unused names of caught exceptions

This commit is contained in:
Simon Richter 2020-02-29 22:53:51 +01:00 committed by Ian McInerney
parent 0f105c4c9a
commit 866aac9737
5 changed files with 7 additions and 7 deletions

View File

@ -649,7 +649,7 @@ bool LIB_MANAGER::addLibrary( const wxString& aFilePath, bool aCreate, SYMBOL_LI
{
aTable->CreateSymbolLib( libName );
}
catch( const IO_ERROR& e )
catch( const IO_ERROR& )
{
aTable->RemoveRow( libRow );
return false;
@ -967,7 +967,7 @@ bool LIB_MANAGER::LIB_BUFFER::SaveBuffer( LIB_MANAGER::PART_BUFFER::PTR aPartBuf
{
cachedParent = aPlugin->LoadSymbol( m_libName, bufferedParent->GetName() );
}
catch( const IO_ERROR& ioe )
catch( const IO_ERROR& )
{
return false;
}

View File

@ -659,7 +659,7 @@ int LIB_EDIT_TOOL::Paste( const TOOL_EVENT& aEvent )
reader.ReadLine();
newPart = SCH_LEGACY_PLUGIN::ParsePart( reader );
}
catch( IO_ERROR& e )
catch( IO_ERROR& )
{
// If it's not a part then paste as text
newPart = new LIB_PART( "dummy_part" );

View File

@ -977,7 +977,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
{
plugin.LoadContent( reader, &paste_screen );
}
catch( IO_ERROR& e )
catch( IO_ERROR& )
{
// If it wasn't content, then paste as text
paste_screen.Append( new SCH_TEXT( wxPoint( 0, 0 ), text ) );

View File

@ -585,7 +585,7 @@ bool HYPERLYNX_EXPORTER::Run()
writePadStacks();
writeNets();
}
catch( IO_ERROR& err )
catch( IO_ERROR& )
{
return false;
}

View File

@ -47,7 +47,7 @@ UTILITY_PROGRAM::FUNC* COMBINED_UTILITY::findSubUtility( const std::string& aNam
return &prog.m_func;
}
catch( const std::out_of_range& e )
catch( const std::out_of_range& )
{
// not found in map
}