diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 4114986497..af668c9236 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -2681,7 +2681,6 @@ void horVerActivated(CmdSketcherConstraint* cmd, std::string type) // get the needed lists and objects const std::vector& SubNames = selection[0].getSubNames(); auto* Obj = static_cast(selection[0].getObject()); - const std::vector& vals = Obj->Constraints.getValues(); std::vector edgegeoids; std::vector pointgeoids; @@ -2800,9 +2799,6 @@ void horVerApplyConstraint(CmdSketcherConstraint* cmd, std::string type, std::ve switch (seqIndex) { case 0:// {Edge} { - // create the constraint - const std::vector& vals = Obj->Constraints.getValues(); - int CrvId = selSeq.front().GeoId; if (CrvId != -1) { const Part::Geometry* geo = Obj->getGeometry(CrvId);