Remove unused method to get rid of deprecated method warning.