Remove an unused function to resolve a compiler warning