mod_survey: remove unused function.