[z2139] Remove some code from pathfinding

* Remove dead code
* Remove some optimisation which could cause bad paths. Pathfinder::calculate now depends entirely on the caller to decide when to not calculate the path

(based on commit [12213] - 0afaf3d)

(based on commit [s1766] - a756d26)