Sketcher Gui: Fix dead code clang-tidy
This commit is contained in:
committed by
abdullahtahiriyo
parent
533250bc34
commit
3eda026ecb
@@ -4499,9 +4499,7 @@ void CmdSketcherConstrainDistance::applyConstraint(std::vector<SelIdPair>& selSe
|
||||
case 2:// {SelEdge}
|
||||
case 3:// {SelExternalEdge}
|
||||
{
|
||||
GeoId1 = GeoId2 = selSeq.at(0).GeoId;
|
||||
PosId1 = Sketcher::PointPos::start;
|
||||
PosId2 = Sketcher::PointPos::end;
|
||||
GeoId1 = selSeq.at(0).GeoId;
|
||||
|
||||
arebothpointsorsegmentsfixed = isPointOrSegmentFixed(Obj, GeoId1);
|
||||
|
||||
@@ -4549,7 +4547,6 @@ void CmdSketcherConstrainDistance::applyConstraint(std::vector<SelIdPair>& selSe
|
||||
GeoId1 = selSeq.at(0).GeoId;
|
||||
GeoId2 = selSeq.at(1).GeoId;
|
||||
PosId1 = selSeq.at(0).PosId;
|
||||
PosId2 = selSeq.at(1).PosId;
|
||||
|
||||
Base::Vector3d pnt = Obj->getPoint(GeoId1, PosId1);
|
||||
const Part::Geometry* geom = Obj->getGeometry(GeoId2);
|
||||
|
||||
@@ -298,10 +298,6 @@ public:
|
||||
minAxisPoint = centerPoint + minAxisDir;
|
||||
endAngle += M_PI / 2;
|
||||
startAngle += M_PI / 2;
|
||||
phi -= M_PI / 2;
|
||||
double t = a;
|
||||
a = b;
|
||||
b = t; // swap a,b
|
||||
}
|
||||
|
||||
int currentgeoid = getHighestCurveIndex();
|
||||
|
||||
@@ -221,12 +221,9 @@ public:
|
||||
double ustartpoint = (cos(phi) * (startingPoint.y - axisPoint.y)
|
||||
- (startingPoint.x - axisPoint.x) * sin(phi));
|
||||
|
||||
double uendpoint =
|
||||
(cos(phi) * (endPoint.y - axisPoint.y) - (endPoint.x - axisPoint.x) * sin(phi));
|
||||
|
||||
double startAngle = ustartpoint;
|
||||
|
||||
double endAngle = uendpoint;
|
||||
double endAngle;
|
||||
|
||||
bool isOriginalArcCCW = true;
|
||||
|
||||
|
||||
@@ -746,7 +746,7 @@ private:
|
||||
int count = 0;
|
||||
int limit = 25; // no infinite loops!
|
||||
bool success = false;
|
||||
double tempB = b;
|
||||
double tempB;
|
||||
|
||||
// adjust b until our mangled vectors produce a good ellipse in GC_MakeEllipse
|
||||
// and the mangled major and minor lines in LinePy::PyInit(...) are such that
|
||||
|
||||
Reference in New Issue
Block a user