Remove an unneeded function