7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-03-30 06:36:55 +00:00

Further netclass name method cleanup

This commit is contained in:
JamesJCode 2025-01-14 21:07:46 +00:00
parent 5cd9e319d3
commit 83f03b10ff
3 changed files with 1 additions and 12 deletions

View File

@ -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();

View File

@ -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; }

View File

@ -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();