We've probably smoked out enough of the GetLayer() issues.

... and GetProperty() can query GetLayer() in user scripts.
This commit is contained in:
Jeff Young 2022-04-14 15:09:00 +01:00
parent 160240166c
commit dbee441328
2 changed files with 0 additions and 4 deletions

View File

@ -202,8 +202,6 @@ bool PAD::IsFlipped() const
PCB_LAYER_ID PAD::GetLayer() const
{
wxFAIL_MSG( wxT( "Pads exist on multiple layers. GetLayer() has no meaning." ) );
return BOARD_ITEM::GetLayer();
}

View File

@ -221,8 +221,6 @@ VECTOR2I ZONE::GetPosition() const
PCB_LAYER_ID ZONE::GetLayer() const
{
wxFAIL_MSG( wxT( "Zones exist on multiple layers. GetLayer() has no meaning." ) );
return BOARD_ITEM::GetLayer();
}