diff --git a/pcbnew/tools/grid_helper.cpp b/pcbnew/tools/grid_helper.cpp index 4e811caae1..b53fca2b9d 100644 --- a/pcbnew/tools/grid_helper.cpp +++ b/pcbnew/tools/grid_helper.cpp @@ -116,9 +116,6 @@ VECTOR2I GRID_HELPER::AlignToSegment ( const VECTOR2I& aPoint, const SEG& aSeg ) { OPT_VECTOR2I pts[6]; - VECTOR2I origin( GetOrigin() ); - VECTOR2I grid( GetGrid() ); - const VECTOR2D gridOffset( GetOrigin() ); const VECTOR2D gridSize( GetGrid() );