diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index 03a60f1fd7..a443a988b5 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -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(); } diff --git a/pcbnew/zone.cpp b/pcbnew/zone.cpp index 0e4e4994ed..36f3c6457f 100644 --- a/pcbnew/zone.cpp +++ b/pcbnew/zone.cpp @@ -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(); }