Refactor QGeoSimplify into a namespace, simplify, remove dead code
The class had only static functions, with the internal helpers declared
as protected. Move those helpers into an anonymous namespace inside the
translation unit.
This helped identify significant amounts of dead code. Remove it,
simplify the remaining function, and fix the coding style, including
replacing int with qsizetype.
Pick-to: 6.2
Change-Id: I4936b8c5f53323e06db082b5378fa185c562a948
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>