Browse Source

Further netclass name method cleanup

pcb_db
JamesJCode 9 months ago
parent
commit
83f03b10ff
  1. 6
      pcbnew/board_connected_item.cpp
  2. 5
      pcbnew/board_connected_item.h
  3. 2
      pcbnew/footprint.cpp

6
pcbnew/board_connected_item.cpp

@ -111,12 +111,6 @@ wxString BOARD_CONNECTED_ITEM::GetNetClassName() const
}
wxString BOARD_CONNECTED_ITEM::GetNetClassVariableSubstitutionName() const
{
return GetEffectiveNetClass()->GetName();
}
wxString BOARD_CONNECTED_ITEM::GetNetname() const
{
return m_netinfo ? m_netinfo->GetNetname() : wxString();

5
pcbnew/board_connected_item.h

@ -185,11 +185,6 @@ public:
*/
wxString GetNetClassName() const;
/*
* Returns the name of the effective netclass for variable substitutions
*/
wxString GetNetClassVariableSubstitutionName() const;
void SetLocalRatsnestVisible( bool aVisible ) { m_localRatsnestVisible = aVisible; }
bool GetLocalRatsnestVisible() const { return m_localRatsnestVisible; }

2
pcbnew/footprint.cpp

@ -1046,7 +1046,7 @@ bool FOOTPRINT::ResolveTextVar( wxString* token, int aDepth ) const
else if( token->StartsWith( wxT( "NET_NAME" ) ) )
*token = pad->GetNetname();
else if( token->StartsWith( wxT( "NET_CLASS" ) ) )
*token = pad->GetNetClassVariableSubstitutionName();
*token = pad->GetNetClassName();
else
*token = pad->GetPinFunction();

Loading…
Cancel
Save