Browse Source

chore(core): Remove unused code, exported interfaces (#1436)

Hubert 3 years ago
parent
commit
ced8ae5066

+ 0 - 1
packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.ts

@@ -25,7 +25,6 @@ export class DefaultProductVariantPriceCalculationStrategy implements ProductVar
         const { inputPrice, activeTaxZone, ctx, taxCategory } = args;
         let price = inputPrice;
         let priceIncludesTax = false;
-        const taxRate = await this.taxRateService.getApplicableTaxRate(ctx, activeTaxZone, taxCategory);
 
         if (ctx.channel.pricesIncludeTax) {
             const isDefaultZone = idsAreEqual(activeTaxZone.id, ctx.channel.defaultTaxZone.id);

+ 1 - 0
packages/core/src/config/index.ts

@@ -6,6 +6,7 @@ export * from './auth/authentication-strategy';
 export * from './auth/native-authentication-strategy';
 export * from './catalog/collection-filter';
 export * from './catalog/default-collection-filters';
+export * from './catalog/product-variant-price-calculation-strategy';
 export * from './config.module';
 export * from './config.service';
 export * from './custom-field/custom-field-types';