Restore over-aggressive CLion cleanup.

This commit is contained in:
Jeff Young 2023-06-06 15:49:41 +01:00
parent 0f8c5a96b2
commit 9a757e8e44
2 changed files with 9 additions and 0 deletions

View File

@ -1154,6 +1154,14 @@ EDA_ANGLE PCB_ARC::GetArcAngleStart() const
}
// Note: used in python tests. Ignore CLion's claim that it's unused....
EDA_ANGLE PCB_ARC::GetArcAngleEnd() const
{
EDA_ANGLE angleEnd( m_End - GetPosition() );
return angleEnd.Normalize();
}
bool PCB_TRACK::cmp_tracks::operator() ( const PCB_TRACK* a, const PCB_TRACK* b ) const
{
if( a->GetNetCode() != b->GetNetCode() )

View File

@ -323,6 +323,7 @@ public:
double GetRadius() const;
EDA_ANGLE GetAngle() const;
EDA_ANGLE GetArcAngleStart() const;
EDA_ANGLE GetArcAngleEnd() const; // Called by Python; ignore CLion's claim that it's unused
virtual bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
virtual bool HitTest( const BOX2I& aRect, bool aContained = true,