Refactor: remove duplicated code


Use the existing helper implementation to convert QJSValue to
QList<QGeoCoordinate>.

Remove parseCircle helper function that is not used anywhere, and
unexport the helper function that is only used by another helper.

Pick-to: 6.2
Change-Id: Ie01cca3e5a7bd09a88be67225185b54e0f28e773
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit22c3c1d155f817324ed535ba599633cad0e49b5e
parent3af758a4cf133a1d8b465a23e4967d64f0e52237
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 13 Sep 2022 19:20:14 +0200