Refactoring. Remove unused argument.

This commit is contained in:
Roman Telezhynskyi 2020-11-25 08:47:01 +02:00
parent e2f4859d48
commit e8b69bbb88
2 changed files with 5 additions and 6 deletions

View File

@ -259,7 +259,7 @@ void VToolSeamAllowance::InsertNode(const QVector<VPieceNode> &nodes, quint32 pi
VToolSeamAllowance *saTool = qobject_cast<VToolSeamAllowance*>(VAbstractPattern::getTool(pieceId));
SCASSERT(saTool != nullptr);
InitNode(node, scene, data, doc, saTool);
InitNode(node, scene, doc, saTool);
}
qApp->getUndoStack()->push(new SavePieceOptions(oldDet, newDet, doc, pieceId));
@ -1744,16 +1744,15 @@ void VToolSeamAllowance::InitNodes(const VPiece &detail, VMainGraphicsScene *sce
{
for (int i = 0; i< detail.GetPath().CountNodes(); ++i)
{
InitNode(detail.GetPath().at(i), scene, &(VAbstractTool::data), doc, this);
InitNode(detail.GetPath().at(i), scene, doc, this);
}
}
//---------------------------------------------------------------------------------------------------------------------
void VToolSeamAllowance::InitNode(const VPieceNode &node, VMainGraphicsScene *scene, VContainer *data,
VAbstractPattern *doc, VToolSeamAllowance *parent)
void VToolSeamAllowance::InitNode(const VPieceNode &node, VMainGraphicsScene *scene, VAbstractPattern *doc,
VToolSeamAllowance *parent)
{
SCASSERT(scene != nullptr)
SCASSERT(data != nullptr)
SCASSERT(doc != nullptr)
SCASSERT(parent != nullptr)

View File

@ -202,7 +202,7 @@ private:
qreal &rotationAngle, QPointF &pos);
void InitNodes(const VPiece &detail, VMainGraphicsScene *scene);
static void InitNode(const VPieceNode &node, VMainGraphicsScene *scene, VContainer *data, VAbstractPattern *doc,
static void InitNode(const VPieceNode &node, VMainGraphicsScene *scene, VAbstractPattern *doc,
VToolSeamAllowance *parent);
void InitCSAPaths(const VPiece &detail) const;
void InitInternalPaths(const VPiece &detail);