Removes unused function