summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-01-14 07:15:02 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2022-01-19 10:05:02 +0100
commit776a0cbbab7c4980bd50ec8dcb5c489857b08758 (patch)
treebcd4e31071c1a416635b4b3026875162df8a91fb
parenta6360b1959c806bfa81e185ed2f9030b36be403b (diff)
constructRoute: remove segmentPathLengthCount
It was causing a (fatal) warning: error: variable 'segmentPathLengthCount' set but not used [-Werror,-Wunused-but-set-variable] Pick-to: 6.3 Change-Id: Ia6ce5861539f878c307630182eb671c442d14a62 Reviewed-by: Lauri Laanmets <lauri.laanmets@eesti.ee> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-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);