Remove some no-longer-necessary ifdefs

This commit is contained in:
Jon Evans 2024-10-06 21:19:05 -04:00
parent 2a605e4a4e
commit 473f19e8fb
2 changed files with 3 additions and 4 deletions

View File

@ -308,7 +308,7 @@ double PCB_VIA::Similarity( const BOARD_ITEM& aOther ) const
return similarity;
}
#if 0
void PCB_VIA::SetWidth( int aWidth )
{
// This is present because of the parent class. It should never be actually called on a via.
@ -323,7 +323,6 @@ int PCB_VIA::GetWidth() const
wxASSERT_MSG( false, "Warning: PCB_VIA::GetWidth called without a layer argument" );
return m_padStack.Size( PADSTACK::ALL_LAYERS ).x;
}
#endif
void PCB_VIA::SetWidth( PCB_LAYER_ID aLayer, int aWidth )

View File

@ -385,10 +385,10 @@ public:
const PADSTACK& Padstack() const { return m_padStack; }
PADSTACK& Padstack() { return m_padStack; }
void SetPadstack( const PADSTACK& aPadstack ) { m_padStack = aPadstack; }
#if 0
void SetWidth( int aWidth ) override;
int GetWidth() const override;
#endif
void SetWidth( PCB_LAYER_ID aLayer, int aWidth );
int GetWidth( PCB_LAYER_ID aLayer ) const;