Removes dead functions.