summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativegeoroute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoroute.cpp')
-rw-r--r--src/location/declarativemaps/qdeclarativegeoroute.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoroute.cpp b/src/location/declarativemaps/qdeclarativegeoroute.cpp
index dc2fd737..8eeb549a 100644
--- a/src/location/declarativemaps/qdeclarativegeoroute.cpp
+++ b/src/location/declarativemaps/qdeclarativegeoroute.cpp
@@ -182,11 +182,7 @@ QJSValue QDeclarativeGeoRoute::path() const
const QGeoCoordinate &c = route_.path().at(i);
QV4::ScopedValue cv(scope, v4->fromVariant(QVariant::fromValue(c)));
-#if Q_QML_PRIVATE_API_VERSION >= 2
pathArray->put(i, cv);
-#else
- pathArray->putIndexed(i, cv);
-#endif
}
return QJSValue(v4, pathArray.asReturnedValue());