88using SmartStore . Core . Domain . Customers ;
99using SmartStore . Core . Domain . Orders ;
1010using SmartStore . Core . Domain . Tax ;
11- using SmartStore . Core . Infrastructure ;
1211using SmartStore . Core . Plugins ;
1312using SmartStore . Services . Common ;
1413using SmartStore . Services . Directory ;
15- using SmartStore . Services . Configuration ;
1614
1715namespace SmartStore . Services . Tax
1816{
@@ -44,7 +42,6 @@ public TaxAddressKey(int customerId, bool productIsEsd)
4442 private readonly IPluginFinder _pluginFinder ;
4543 private readonly IDictionary < TaxRateCacheKey , decimal > _cachedTaxRates ;
4644 private readonly IDictionary < TaxAddressKey , Address > _cachedTaxAddresses ;
47- private readonly ISettingService _settingService ;
4845 private readonly IProviderManager _providerManager ;
4946 private readonly IGeoCountryLookup _geoCountryLookup ;
5047
@@ -65,10 +62,8 @@ public TaxService(
6562 TaxSettings taxSettings ,
6663 ShoppingCartSettings cartSettings ,
6764 IPluginFinder pluginFinder ,
68- ISettingService settingService ,
6965 IGeoCountryLookup geoCountryLookup ,
70- IProviderManager providerManager
71- )
66+ IProviderManager providerManager )
7267 {
7368 this . _addressService = addressService ;
7469 this . _workContext = workContext ;
@@ -77,7 +72,6 @@ IProviderManager providerManager
7772 this . _pluginFinder = pluginFinder ;
7873 this . _cachedTaxRates = new Dictionary < TaxRateCacheKey , decimal > ( ) ;
7974 this . _cachedTaxAddresses = new Dictionary < TaxAddressKey , Address > ( ) ;
80- this . _settingService = settingService ;
8175 this . _providerManager = providerManager ;
8276 this . _geoCountryLookup = geoCountryLookup ;
8377 }
@@ -274,9 +268,7 @@ public virtual Provider<ITaxProvider> LoadActiveTaxProvider()
274268 if ( taxProvider == null )
275269 {
276270 taxProvider = LoadAllTaxProviders ( ) . FirstOrDefault ( ) ;
277- _taxSettings . ActiveTaxProviderSystemName = taxProvider . Metadata . SystemName ;
278- _settingService . SaveSetting ( _taxSettings ) ;
279- }
271+ }
280272 return taxProvider ;
281273 }
282274
0 commit comments