clean some warnings and remove unused methods from ProviderDelegate