Remove unnecessary function pointer