Remove debug code matching on specific component names

This commit is contained in:
Simon Richter 2017-02-23 20:35:49 +01:00 committed by Wayne Stambaugh
parent 4eeed8d04f
commit 1502e27695
3 changed files with 0 additions and 53 deletions

View File

@ -733,14 +733,6 @@ bool LIB_PART::Save( OUTPUTFORMATTER& aFormatter )
// Save data
aFormatter.Print( 0, "DEF" );
#if 0 && defined(DEBUG)
if( value.GetText() == wxT( "R" ) )
{
int breakhere = 1;
(void) breakhere;
}
#endif
if( value.IsVisible() )
{
aFormatter.Print( 0, " %s", TO_UTF8( value.GetText() ) );

View File

@ -1471,13 +1471,6 @@ void EAGLE_PLUGIN::loadPlain( CPTREE& aGraphics )
}
else if( gr->first == "text" )
{
#if defined(DEBUG)
if( gr->second.data() == "ATMEGA328" )
{
int breakhere = 1;
(void) breakhere;
}
#endif
m_xpath->push( "text" );
ETEXT t( gr->second );
@ -1729,13 +1722,6 @@ void EAGLE_PLUGIN::loadLibrary( CPTREE& aLib, const string* aLibName )
ReplaceIllegalFileNameChars( &pack_name );
#if 0 && defined(DEBUG)
if( pack_name == "TO220H" )
{
int breakhere = 1;
(void) breakhere;
}
#endif
m_xpath->Value( pack_name.c_str() );
string key = aLibName ? makeKey( *aLibName, pack_name ) : pack_name;
@ -1820,13 +1806,6 @@ void EAGLE_PLUGIN::loadElements( CPTREE& aElements )
THROW_IO_ERROR( emsg );
}
#if defined(DEBUG)
if( e.name == "ARM_C8" )
{
int breakhere = 1;
(void) breakhere;
}
#endif
// copy constructor to clone the template
MODULE* m = new MODULE( *mi->second );
m_board->Add( m, ADD_APPEND );
@ -2625,13 +2604,6 @@ void EAGLE_PLUGIN::loadSignals( CPTREE& aSignals )
m_xpath->Value( nname.c_str() );
#if defined(DEBUG)
if( netName == wxT( "N$8" ) )
{
int breakhere = 1;
(void) breakhere;
}
#endif
// (contactref | polygon | wire | via)*
for( CITER it = net->second.begin(); it != net->second.end(); ++it )
{

View File

@ -1797,14 +1797,6 @@ void LEGACY_PLUGIN::loadMODULE_TEXT( TEXTE_MODULE* aText )
// as far forward as needed until the first double quote.
txt_end = data + ReadDelimitedText( &m_field, data );
#if 1 && defined(DEBUG)
if( m_field == wxT( "ARM_C8" ) )
{
int breakhere = 1;
(void) breakhere;
}
#endif
aText->SetText( m_field );
// after switching to strtok, there's no easy coming back because of the
@ -3320,15 +3312,6 @@ void LP_CACHE::LoadModules( LINE_READER* aReader )
// set the footprint name first thing, so exceptions can use name.
module->SetFPID( LIB_ID( footprintName ) );
#if 0 && defined( DEBUG )
printf( "%s\n", footprintName.c_str() );
if( footprintName == "QFN40" )
{
int breakhere = 1;
(void) breakhere;
}
#endif
m_owner->loadMODULE( module.get() );
MODULE* m = module.release(); // exceptions after this are not expected.