Remove unused function throwing warnings.