constructRoute: remove segmentPathLengthCount


It was causing a (fatal) warning:
error: variable 'segmentPathLengthCount' set but not used
[-Werror,-Wunused-but-set-variable]

Pick-to: 6.3
Change-Id: Ia6ce5861539f878c307630182eb671c442d14a62
Reviewed-by: Lauri Laanmets <lauri.laanmets@eesti.ee>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit776a0cbbab7c4980bd50ec8dcb5c489857b08758
parenta6360b1959c806bfa81e185ed2f9030b36be403b
authorShawn Rutledge <shawn.rutledge@qt.io>
committerShawn Rutledge <shawn.rutledge@qt.io>
commit timeWed, 19 Jan 2022 10:05:02 +0100