remove an unused function

The fact that it's full of comments should have been a clue.