Remove unused private functions