Delete unused function