Removed old debug output

This commit is contained in:
Maciej Suminski 2017-12-17 18:43:43 +01:00
parent 9f2c6e20cb
commit a13c89c83d
7 changed files with 4 additions and 56 deletions

View File

@ -208,19 +208,6 @@ bool EDA_BASE_FRAME::ProcessEvent( wxEvent& aEvent )
}
bool EDA_BASE_FRAME::Enable( bool enable )
{
// so we can do logging of this state change:
#if defined(DEBUG)
const char* type_id = typeid( *this ).name();
printf( "wxFrame %-28s: %s\n", type_id, enable ? "enabled" : "disabled" );
#endif
return wxFrame::Enable( enable );
}
void EDA_BASE_FRAME::SetAutoSaveInterval( int aInterval )
{
m_autoSaveInterval = aInterval;

View File

@ -84,10 +84,6 @@ static void setSearchPaths( SEARCH_STACK* aDst, KIWAY::FACE_T aId )
#ifndef __WXMAC__
aDst->AddPaths( wxT( "/usr/local/share" ) );
#endif
#if 1 && defined(DEBUG)
aDst->Show( "kiface" );
#endif
}

View File

@ -50,7 +50,6 @@ KIWAY_PLAYER::KIWAY_PLAYER( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrameType
m_modal( false ),
m_modal_loop( 0 ), m_modal_resultant_parent( 0 )
{
// DBG( printf("KIWAY_EXPRESS::wxEVENT_ID:%d\n", KIWAY_EXPRESS::wxEVENT_ID );)
m_modal_ret_val = 0;
}
@ -65,7 +64,6 @@ KIWAY_PLAYER::KIWAY_PLAYER( wxWindow* aParent, wxWindowID aId, const wxString& a
m_modal_resultant_parent( 0 ),
m_modal_ret_val( false )
{
// DBG( printf("KIWAY_EXPRESS::wxEVENT_ID:%d\n", KIWAY_EXPRESS::wxEVENT_ID );)
}
@ -139,9 +137,6 @@ bool KIWAY_PLAYER::ShowModal( wxString* aResult, wxWindow* aResultantFocusWindow
if( aResult )
*aResult = m_modal_string;
DBG(printf( "~%s: aResult:'%s' ret:%d\n",
__func__, TO_UTF8( m_modal_string ), m_modal_ret_val );)
if( aResultantFocusWindow )
{
aResultantFocusWindow->Raise();
@ -162,11 +157,7 @@ bool KIWAY_PLAYER::Destroy()
bool KIWAY_PLAYER::IsDismissed()
{
bool ret = !m_modal_loop;
DBG(printf( "%s: ret:%d\n", __func__, ret );)
return ret;
return !m_modal_loop;
}
@ -188,13 +179,6 @@ void KIWAY_PLAYER::DismissModal( bool aRetVal, const wxString& aResult )
void KIWAY_PLAYER::kiway_express( KIWAY_EXPRESS& aEvent )
{
// logging support
#if defined(DEBUG)
const char* class_name = typeid( this ).name();
printf( "%s: received cmd:%d pay:'%s'\n", class_name,
aEvent.Command(), aEvent.GetPayload().c_str() );
#endif
KiwayMailIn( aEvent ); // call the virtual, override in derived.
}

View File

@ -45,8 +45,6 @@ PROJECT::PROJECT()
void PROJECT::ElemsClear()
{
DBG( printf( "%s: clearing all _ELEMS for project %s\n", __func__, TO_UTF8( GetProjectFullName() ) );)
// careful here, this should work, but the virtual destructor may not
// be in the same link image as PROJECT.
for( unsigned i = 0; i < DIM( m_elems ); ++i )

View File

@ -220,8 +220,6 @@ public:
*/
bool ProcessEvent( wxEvent& aEvent ) override;
bool Enable( bool enable ) override;
void SetAutoSaveInterval( int aInterval );
int GetAutoSaveInterval() const { return m_autoSaveInterval; }

View File

@ -142,6 +142,7 @@ const wxPoint& BOARD::GetPosition() const
return ZeroOffset;
}
void BOARD::SetPosition( const wxPoint& aPos )
{
wxLogWarning( wxT( "This should not be called on the BOARD object") );
@ -1871,10 +1872,6 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace, int* aCount,
chainMarkedSegments( aTrace->GetStart(), layer_set, &from_start );
chainMarkedSegments( aTrace->GetEnd(), layer_set, &from_end );
// DBG( dump_tracks( "first_clicked", trackList ); )
// DBG( dump_tracks( "from_start", from_start ); )
// DBG( dump_tracks( "from_end", from_end ); )
// combine into one trackList:
trackList.insert( trackList.end(), from_start.begin(), from_start.end() );
trackList.insert( trackList.end(), from_end.begin(), from_end.end() );
@ -1927,14 +1924,6 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace, int* aCount,
{
// The via connects segments of another track: it is removed
// from list because it is member of another track
DBG(printf( "%s: omit track (%d, %d) (%d, %d) on layer:%d (!= our_layer:%d)\n",
__func__,
track->GetStart().x, track->GetStart().y,
track->GetEnd().x, track->GetEnd().y,
track->GetLayer(), layer
); )
via->SetState( BUSY, false );
break;
}
@ -2018,7 +2007,7 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace, int* aCount,
}
else // Should not occur, at least for basic pads
{
// wxLogMessage( "BOARD::MarkTrace: multiple pad_on_start" );
wxLogWarning( "Unexpected BOARD::MarkTrace: multiple pad_on_start" );
}
}
@ -2039,7 +2028,7 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace, int* aCount,
}
else // Should not occur, at least for basic pads
{
// wxLogMessage( "BOARD::MarkTrace: multiple pad_on_end" );
wxLogWarning( "Unexpected BOARD::MarkTrace: multiple pad_on_end" );
}
}
}
@ -2080,8 +2069,6 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace, int* aCount,
track->SetState( BUSY, false );
}
}
DBG( printf( "%s: busy_count:%d\n", __func__, busy_count ); )
}
if( s_pad )

View File

@ -487,8 +487,6 @@ static VIATYPE_T getViaTypeFromFlags( int aFlags )
wxASSERT_MSG( false, "Unhandled via type" );
}
wxLogDebug("via type %d", viaType );
return viaType;
}