Skip to content
This repository was archived by the owner on Nov 19, 2021. It is now read-only.

Commit f179da4

Browse files
committed
removed function removeItem from cartService
1 parent 79bf6cb commit f179da4

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/app/cart.service.ts

-21
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,5 @@ export class CartService {
5050
public getItems(): any {
5151
return this.itemArray;
5252
}
53-
/**
54-
* Remove item from the cart
55-
* @param {Item[]} itemArray
56-
* @param {string} itemUrl
57-
* @returns {*}
58-
* @memberof CartService
59-
*/
60-
// public removeItem(itemArray: Item[], itemUrl: string): any {
61-
// let items: Item[] = itemArray;
62-
// let itemsAux: Item[] = [];
63-
// for (let i: number = 0; i < items.length; i++) {
64-
// if (itemUrl === items[i].url) {
65-
// let index: number = i;
66-
// items[i].count = 0;
67-
// items.splice(i, 1);
6853

69-
// } else {
70-
// itemsAux.push(items[i]);
71-
// }
72-
// }
73-
// return itemsAux;
74-
// }
7554
}

0 commit comments

Comments
 (0)