remove unused code in provider repository.