Fix unused function warnings in qtriangulator.cpp
qIntersectionPoint with ints wasn't used, qDot was only used in debug mode. Found by Clang 3.4. Change-Id: I4b5699f75eb88331df54bf5a289133914d80b299 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
f4d3196e4f
commit
17da13baaa
@ -201,10 +201,12 @@ static inline qint64 qCross(const QPodPoint &u, const QPodPoint &v)
|
||||
return qint64(u.x) * qint64(v.y) - qint64(u.y) * qint64(v.x);
|
||||
}
|
||||
|
||||
#ifdef Q_TRIANGULATOR_DEBUG
|
||||
static inline qint64 qDot(const QPodPoint &u, const QPodPoint &v)
|
||||
{
|
||||
return qint64(u.x) * qint64(v.x) + qint64(u.y) * qint64(v.y);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Return positive value if 'p' is to the right of the line 'v1'->'v2', negative if left of the
|
||||
// line and zero if exactly on the line.
|
||||
@ -249,13 +251,6 @@ static inline QIntersectionPoint qIntersectionPoint(const QPodPoint &point)
|
||||
return p;
|
||||
}
|
||||
|
||||
static inline QIntersectionPoint qIntersectionPoint(int x, int y)
|
||||
{
|
||||
// upperLeft = (x, y), xOffset = 0/1, yOffset = 0/1.
|
||||
QIntersectionPoint p = {{x, y}, {0, 1}, {0, 1}};
|
||||
return p;
|
||||
}
|
||||
|
||||
static QIntersectionPoint qIntersectionPoint(const QPodPoint &u1, const QPodPoint &u2, const QPodPoint &v1, const QPodPoint &v2)
|
||||
{
|
||||
QIntersectionPoint result = {{0, 0}, {0, 0}, {0, 0}};
|
||||
|
Loading…
Reference in New Issue
Block a user