Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove leftover/debugging lines

Dmitry Kazakov01716da5f7e5
diff --git a/libs/global/kis_algebra_2d.cpp b/libs/global/kis_algebra_2d.cpp
index 39b7549de1..b76fc1612e 100644
--- a/libs/global/kis_algebra_2d.cpp
+++ b/libs/global/kis_algebra_2d.cpp
@@ -122,7 +122,6 @@ qreal directionBetweenPoints(const QPointF &p1, const QPointF &p2, qreal default
}
const QVector2D diff(p2 - p1);
- //qCritical() << ""
return std::atan2(diff.y(), diff.x());
}
@@ -1360,10 +1359,6 @@ QPolygonF calculateConvexHullFromPointsOverTheLine(const QPolygonF &points, cons
}
if (points.count() == 1) {
QList<QPointF> list = points.toList();
- qCritical() << list.length() << list.count() << list.empty() << list.first();
- //qCritical() << points << points.count() << points.length();
- //qCritical() << points[0];
- //QPointF p = points[0];
QPolygonF result;
result << line.p1();
@@ -1371,7 +1366,6 @@ QPolygonF calculateConvexHullFromPointsOverTheLine(const QPolygonF &points, cons
result << line.p2();
result << line.p1();
- //result << line.p1() << points[0] << line.p2() << line.p1();
return result;
}
@@ -1634,7 +1628,6 @@ QPainterPath getOnePathFromRectangleCutThrough(const QList<QPointF> &points, con
// usually would add, unless it's the ending
if (onTheLine(availablePoints[index], line.p1())) {
path.lineTo(availablePoints[index]);
- //path.lineTo();
break;
}
path.lineTo(availablePoints[index]);
diff --git a/libs/global/kis_algebra_2d.h b/libs/global/kis_algebra_2d.h
index 76c16d07fc..5404d82ef1 100644
--- a/libs/global/kis_algebra_2d.h
+++ b/libs/global/kis_algebra_2d.h
@@ -619,7 +619,6 @@ public:
public:
VectorPath(const QPainterPath& path);
VectorPath(const QList<VectorPathPoint> path);
- //VectorPath(const QList<VectorPathPoint> path);
int pointsCount() const;