Remove unused method.

This method is not used anywhere. Get rid of it.