Skip to content

Commit b28e477

Browse files
authored
Merge pull request #380 from w3bdesign/develop
Remove unused function
2 parents 65cb2c2 + 8d4b85b commit b28e477

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

components/Header/Hamburger.component.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Link from 'next/link';
99
*/
1010
const Hamburger = () => {
1111
const [isExpanded, setisExpanded] = useState(false);
12-
1312
const hamburgerSlideDownAnimation = useSpring({
1413
to: [
1514
{
@@ -69,7 +68,6 @@ const Hamburger = () => {
6968
>
7069
<path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"></path>
7170
</animated.svg>
72-
7371
<animated.svg
7472
id="xsvg"
7573
onClick={() => {

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ module.exports = {
88
extend: {},
99
},
1010
plugins: [],
11-
}
11+
};

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)