Skip to content

Commit 8d4b85b

Browse files
committed
Remove unused function
1 parent 68ddc8d commit 8d4b85b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

utils/functions/functions.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,6 @@ export const getFloatVal = (string) => {
4040
: '';
4141
};
4242

43-
/**
44-
* Update cart when we add a new product to it
45-
* @param {Object} existingCart
46-
* @param {Object} product
47-
* @param {Number} quantityToBeAdded
48-
*/
49-
export const updateCart = (
50-
existingCart,
51-
product,
52-
quantityToBeAdded,
53-
newQuantity = false
54-
) => {
55-
getUpdatedProducts(
56-
existingCart.products,
57-
product,
58-
quantityToBeAdded,
59-
newQuantity
60-
);
61-
};
62-
6343
/**
6444
* Returns cart data in the required format.
6545
* @param {String} data Cart data

0 commit comments

Comments
 (0)