summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-01-14 07:15:02 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-19 11:40:11 +0000
commit9adea01c409ad805eff74ead88876599c2994633 (patch)
treeec97e8b25d3bc0c5a93a58b41b84f5daa6f2a2bf
parent129d1923ad2810c468af9f4b980ddb4b113a82e3 (diff)
downloadqtlocation-6.3.0.tar.gz
constructRoute: remove segmentPathLengthCount6.3.06.3
It was causing a (fatal) warning: error: variable 'segmentPathLengthCount' set but not used [-Werror,-Wunused-but-set-variable] Change-Id: Ia6ce5861539f878c307630182eb671c442d14a62 Reviewed-by: Lauri Laanmets <lauri.laanmets@eesti.ee> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 776a0cbbab7c4980bd50ec8dcb5c489857b08758) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/location/maps/qgeorouteparserosrmv4.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv4.cpp b/src/location/maps/qgeorouteparserosrmv4.cpp
index 2d82806a..35dda62b 100644
--- a/src/location/maps/qgeorouteparserosrmv4.cpp
+++ b/src/location/maps/qgeorouteparserosrmv4.cpp
@@ -258,8 +258,6 @@ static QGeoRoute constructRoute(const QByteArray &geometry, const QJsonArray &in
QGeoRouteSegment firstSegment;
int firstPosition = -1;
- int segmentPathLengthCount = 0;
-
for (int i = instructions.count() - 1; i >= 0; --i) {
QJsonArray instruction = instructions.at(i).toArray();
@@ -294,8 +292,6 @@ static QGeoRoute constructRoute(const QByteArray &geometry, const QJsonArray &in
else
segment.setPath(path.mid(position, firstPosition - position));
- segmentPathLengthCount += segment.path().length();
-
segment.setTravelTime(time);
segment.setNextRouteSegment(firstSegment);