Remove confusing GetFirstPad() call

This no longer returns the first pad, just the first by pad sort order
in output.  The call is not used correctly in pcbnew, so removing to
prevent future misuse
This commit is contained in:
Seth Hillbrand 2021-02-01 12:00:42 -08:00
parent afad1625d7
commit 54f5a47208
2 changed files with 1 additions and 11 deletions

View File

@ -913,7 +913,7 @@ PAD* FOOTPRINT::GetPad( const wxPoint& aPosition, LSET aLayerMask )
PAD* FOOTPRINT::GetTopLeftPad()
{
PAD* topLeftPad = GetFirstPad();
PAD* topLeftPad = m_pads.front();
for( PAD* p : m_pads )
{

View File

@ -507,16 +507,6 @@ public:
PAD* GetTopLeftPad();
/**
* Get the first pad in the list or NULL if none.
*
* @return first pad or null pointer.
*/
PAD* GetFirstPad() const
{
return m_pads.empty() ? nullptr : m_pads.front();
}
/**
* Return the number of pads.
*