From 1502e27695de125f1ffa8f0afa87498a91f53cf4 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Thu, 23 Feb 2017 20:35:49 +0100 Subject: [PATCH] Remove debug code matching on specific component names --- eeschema/class_libentry.cpp | 8 -------- pcbnew/eagle_plugin.cpp | 28 ---------------------------- pcbnew/legacy_plugin.cpp | 17 ----------------- 3 files changed, 53 deletions(-) diff --git a/eeschema/class_libentry.cpp b/eeschema/class_libentry.cpp index 9e7a1b244a..b87fb2345e 100644 --- a/eeschema/class_libentry.cpp +++ b/eeschema/class_libentry.cpp @@ -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() ) ); diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index 21efba876b..a4ce2a58f3 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -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 ) { diff --git a/pcbnew/legacy_plugin.cpp b/pcbnew/legacy_plugin.cpp index 68e5b40677..33e1741365 100644 --- a/pcbnew/legacy_plugin.cpp +++ b/pcbnew/legacy_plugin.cpp @@ -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.