Remove duplicate code in Eagle PCB plugin

This commit is contained in:
Michael Kavanagh 2020-08-16 20:35:40 +01:00 committed by Seth Hillbrand
parent 595ea70b0f
commit b06e605255
1 changed files with 3 additions and 10 deletions

View File

@ -2494,16 +2494,7 @@ PCB_LAYER_ID EAGLE_PLUGIN::kicad_layer( int aEagleLayer ) const
// translate non-copper eagle layer to pcbnew layer
switch( aEagleLayer )
{
case EAGLE_LAYER::MILLING:
wxLogMessage( wxString::Format( _( "Unsupported Eagle layer '%s' (%d), "
"converted to Dwgs.User layer" ),
eagle_layer_name( aEagleLayer ),
aEagleLayer ) );
kiLayer = Dwgs_User;
break;
// Eagle says "Dimension" layer, but it's for board perimeter
// Eagle says "Dimension" layer, but it's for board perimeter
case EAGLE_LAYER::DIMENSION: kiLayer = Edge_Cuts; break;
case EAGLE_LAYER::TPLACE: kiLayer = F_SilkS; break;
@ -2541,6 +2532,8 @@ PCB_LAYER_ID EAGLE_PLUGIN::kicad_layer( int aEagleLayer ) const
case EAGLE_LAYER::TKEEPOUT: kiLayer = F_CrtYd; break;
case EAGLE_LAYER::BKEEPOUT: kiLayer = B_CrtYd; break;
case EAGLE_LAYER::MILLING:
case EAGLE_LAYER::TTEST:
case EAGLE_LAYER::BTEST:
case EAGLE_LAYER::HOLES: