From 4f7f907d8d163a1ae37346f62c364355f2d541cb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 29 Sep 2018 19:36:55 +0300 Subject: [PATCH] Remove checks those cover valid case of passmark collapse. --HG-- branch : release --- src/libs/vpatterndb/vpiece.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index 6684a175f..4fdbd7b9d 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -1261,18 +1261,14 @@ QVector VPiece::CreatePassmark(const QVector &path, int prev if (not GetPassmarkPreviousSAPoints(path, previousIndex, passmarkSAPoint, data, previousSAPoint)) { - const QString errorMsg = QObject::tr("Cannot calculate a notch for point '%1' in piece '%2'.") - .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); - qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : qWarning() << errorMsg; + // No check here because it will cover valid cases return QVector(); // Something wrong } VSAPoint nextSAPoint; if (not GetPassmarkNextSAPoints(path, nextIndex, passmarkSAPoint, data, nextSAPoint)) { - const QString errorMsg = QObject::tr("Cannot calculate a notch for point '%1' in piece '%2'.") - .arg(VPiecePath::NodeName(path, passmarkIndex, data), GetName()); - qApp->IsPedantic() ? throw VExceptionInvalidNotch(errorMsg) : qWarning() << errorMsg; + // No check here because it will cover valid cases return QVector(); // Something wrong }