refactor($parse): remove dead code

Closes #9489