QGeoCoordinateAnimation: fix shortest path interpolation


Inspired by CodeChecker warning about dead code.
Fix some copy-paste issues which could lead to incorrect shortest
path estimation when it crosses the -180/180 degree line.

As a drive-by: remove the unneeded initialization of a variable, that
is anyway initialized later. Just to silence another CodeChecker
warning.

Pick-to: 6.2
Change-Id: I9ebd5900a5ca331ef5846a06cf6415a2f1093400
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit5042f54a13899242fa508be7c6531b479236bfc3
parent965c80c5db88dd94b666228d432b226c496c9d30
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 31 Aug 2021 12:42:59 +0200