Skip to content

Commit adb7574

Browse files
committed
Remove unnecessary code in estimateTotals method
1 parent 5f05166 commit adb7574

File tree

1 file changed

+0
-10
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/model/cart/totals-processor

1 file changed

+0
-10
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/cart/totals-processor/default.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@ define([
7777
* @param {Object} address
7878
*/
7979
estimateTotals: function (address) {
80-
var data = {
81-
shippingMethodCode: null,
82-
shippingCarrierCode: null
83-
};
84-
85-
if (quote.shippingMethod() && quote.shippingMethod()['method_code']) {
86-
data.shippingMethodCode = quote.shippingMethod()['method_code'];
87-
data.shippingCarrierCode = quote.shippingMethod()['carrier_code'];
88-
}
89-
9080
return loadFromServer(address);
9181
}
9282
};

0 commit comments

Comments
 (0)