diff --git a/pcbnew/tools/edit_points.h b/pcbnew/tools/edit_points.h index 58c3757e2a..740ae60316 100644 --- a/pcbnew/tools/edit_points.h +++ b/pcbnew/tools/edit_points.h @@ -492,17 +492,6 @@ public: return m_lines.size(); } - void SetAllowPoints( bool aAllow = true ) - { - m_allowPoints = aAllow; - } - - bool GetAllowPoints() const - { - return m_allowPoints; - } - - ///> @copydoc VIEW_ITEM::ViewBBox() virtual const BOX2I ViewBBox() const override; diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index a48c73bcbd..c048e8b4aa 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -200,7 +200,6 @@ public: { auto zone = static_cast( aItem ); buildForPolyOutline( points, zone->Outline(), aGal ); - points->SetAllowPoints( !zone->GetHV45() ); break; } @@ -370,8 +369,7 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) snapLayers, { item } ) ); // The alternative constraint limits to 45° - bool enableAltConstraint = - ( !!evt->Modifier( MD_CTRL ) || !m_editPoints->GetAllowPoints() ); + bool enableAltConstraint = !!evt->Modifier( MD_CTRL ); if( enableAltConstraint != (bool) m_altConstraint ) // alternative constraint setAltConstraint( enableAltConstraint );