diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 86e19ec525..4e6b79b64e 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -832,12 +832,6 @@ void PCB_PAINTER::draw( const VIA* aVia, int aLayer ) } -bool isImplicitNet( const wxString& aNetName ) -{ - return aNetName.StartsWith( wxT( "Net-(" ) ) || aNetName.StartsWith( wxT( "unconnected-(" ) ); -} - - void PCB_PAINTER::draw( const PAD* aPad, int aLayer ) { BOARD* board = aPad->GetBoard(); @@ -914,7 +908,7 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer ) if( pinType == wxT( "no_connect" ) || pinType.EndsWith( wxT( "+no_connect" ) ) ) netname = "x"; - else if( pinType == wxT( "free" ) && isImplicitNet( netname ) ) + else if( pinType == wxT( "free" ) && netname.StartsWith( wxT( "unconnected-(" ) ) ) netname = "*"; // calculate the size of net name text: