Remove unused function getAnswer