summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeorouteparserosrmv4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/maps/qgeorouteparserosrmv4.cpp')
-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);