refactor($location) Remove unused variables

These were left around in 736c8fbbae57a209f4ba570e38cc3bd0745a9569

Closes #9482