Remove unneeded function definitions