Cleanup RAD2DEG and unused vars

This commit is contained in:
Seth Hillbrand 2021-05-28 12:37:57 -07:00
parent f47784cd14
commit be5b281501
1 changed files with 1 additions and 2 deletions

View File

@ -2764,7 +2764,7 @@ void CADSTAR_SCH_ARCHIVE_LOADER::fixUpLibraryPins( LIB_PART* aPartToFix, int aGa
auto setPinOrientation =
[&]( double aAngleRad )
{
int oDeg = (int) NormalizeAngle180( wxRadToDeg( aAngleRad ) );
int oDeg = (int) NormalizeAngle180( RAD2DEG( aAngleRad ) );
if( oDeg >= -45 && oDeg <= 45 )
pin->SetOrientation( 'R' ); // 0 degrees
@ -2789,7 +2789,6 @@ void CADSTAR_SCH_ARCHIVE_LOADER::fixUpLibraryPins( LIB_PART* aPartToFix, int aGa
pin->SetLength( vec.EuclideanNorm() );
setPinOrientation( vec.Angle() );
int i = 0;
}
}
}